summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-13 07:10:12 +1000
committerGitHub <noreply@github.com>2020-03-13 07:10:12 +1000
commita133543132c156feb4e56f126d05df43e1b46d99 (patch)
tree807ce47e2ca3f31b2ccf1be3288c65ac6f7f4c12 /.travis
parent6faecab5150af3e14802199c2255924a83151fc4 (diff)
Migrate make dist validation to GHA Workflows (#8373)
* Migrate make dist validation to GHA Workflows * Refactor run_install_with_dist_file.sh
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/run_install_with_dist_file.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/.travis/run_install_with_dist_file.sh b/.travis/run_install_with_dist_file.sh
deleted file mode 100755
index ccad627cc2..0000000000
--- a/.travis/run_install_with_dist_file.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-#
-# This script is evaluating netdata installation with the source from make dist
-#
-# Copyright: SPDX-License-Identifier: GPL-3.0-or-later
-#
-# Author : Pavlos Emm. Katsoulakis <paul@netdata.cloud)
-#
-set -e
-
-# If we are not in netdata git repo, at the top level directory, fail
-TOP_LEVEL=$(basename "$(git rev-parse --show-toplevel)")
-CWD=$(git rev-parse --show-cdup || echo "")
-if [ -n "${CWD}" ] || [ ! "${TOP_LEVEL}" == "netdata" ]; then
- echo "Run as .travis/$(basename "$0") from top level directory of netdata git repository"
- echo "Changelog generation process aborted"
- exit 1
-fi
-
-echo "Initiating dist archive contents validation"
-DIST_FILE_FROM_GIT="netdata-$(git describe).tar.gz"
-DIST_FILE_FROM_FILE="netdata-$(tr -d '\n' < packaging/version).tar.bgz"
-if [ -f ${DIST_FILE_FROM_GIT} ]; then
- DIST_FILE="${DIST_FILE_FROM_GIT}"
-elif [ -f ${DIST_FILE_FROM_FILE} ]; then
- DIST_FILE="${DIST_FILE_FROM_FILE}"
-else
- echo "I could not find netdata distfile. Nor ${DIST_FILE_FROM_GIT} or ${DIST_FILE_FROM_FILE} exist"
- exit 1
-fi
-
-echo "Opening dist archive ${DIST_FILE}"
-tar -xovf "${DIST_FILE}"
-NETDATA_DIST_FOLDER=$(echo ${DIST_FILE} | cut -d. -f1,2,3)
-if [ ! -d ${NETDATA_DIST_FOLDER} ]; then
- echo "I could not locate folder ${NETDATA_DIST_FOLDER}, something went wrong failing the test"
- exit 1
-fi
-
-echo "Entering ${NETDATA_DIST_FOLDER} and starting docker compilation"
-cd ${NETDATA_DIST_FOLDER}
-docker run -it -v "${PWD}:/code:rw" -w /code "netdata/os-test:centos7" /bin/bash -c "./netdata-installer.sh --dont-wait --install /tmp && echo \"Validating netdata instance is running\" && wget -O'-' 'http://127.0.0.1:19999/api/v1/info' | grep version"
-
-echo "Installation completed with no errors! Removing temporary folders"
-
-# TODO: Travis give me a permission denied on some files here, i made it a soft error until i figure out what is wrong
-cd -
-rm -rf ${NETDATA_DIST_FOLDER} || echo "I could not remove temporary directory, make sure you delete ${NETDATA_DIST_FOLDER} by yourself if this wasn't run over ephemeral storage"