diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-04-29 18:39:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 18:39:22 +0300 |
commit | d01b2620eab77d8f2ab1c70456744565eff356f0 (patch) | |
tree | 9b0713a373f0d63282ecd728322bb5d873b351b3 /tests/updater_checks.sh | |
parent | e33c45d333b0704363eb31105293c9b067158cdb (diff) |
Fix lifecycle script (#5918)
* netdata/packaging/ci: stronger validations during install, add some comments, change validation of CWD
* netdata/packaging/ci: Add a lifecycle test to validate update from stable to latest works smooth
-> Add updater BATS script that does the trick for installing stable then migrating to latest using current code and not nightly
-> Integrate with travis
-> Rename /code to /netdata in travis, scripts will eventually expect the TLD of repo to be actually named netdata, so test will start failing later
-> Introduce a flag on the updater, so that it doesn't download the tarball, but it rather works with a local pre-defined directory. If a user wants
to override the update process, so that it runs with a different repository he just needs to export NETDATA_LOCAL_TARBAL_OVERRIDE with the desired repo directory
* netdata/packaging/ci: Add required packages for it to run
Diffstat (limited to 'tests/updater_checks.sh')
-rwxr-xr-x | tests/updater_checks.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/updater_checks.sh b/tests/updater_checks.sh new file mode 100755 index 0000000000..dce136853f --- /dev/null +++ b/tests/updater_checks.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# +# Wrapper script that installs the required dependencies +# for the BATS script to run successfully +# +# Copyright: SPDX-License-Identifier: GPL-3.0-or-later +# +# Author : Pavlos Emm. Katsoulakis <paul@netdata.cloud) +# + +echo "Installing extra dependencies.." +yum install -y epel-release +yum install -y git bats + +echo "Running BATS file.." +bats --tap tests/updater_checks.bats |