diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:29 +0000 |
commit | 17c93e2be4ad7b3af0cd6878bdd5d8a4a3e6da99 (patch) | |
tree | 3e0c96613972e8bb4afdeeb97a034806363ddfa9 /.travis/run_install_with_dist_file.sh | |
parent | Releasing debian version 1.18.1-1. (diff) | |
download | netdata-17c93e2be4ad7b3af0cd6878bdd5d8a4a3e6da99.tar.xz netdata-17c93e2be4ad7b3af0cd6878bdd5d8a4a3e6da99.zip |
Merging upstream version 1.19.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | .travis/run_install_with_dist_file.sh | 48 |
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 ccad627cc..000000000 --- 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" |