Skip to content

Commit

Permalink
miscellaneous CI updates
Browse files Browse the repository at this point in the history
Signed-off-by: jdolitsky <[email protected]>
  • Loading branch information
jdolitsky committed Sep 13, 2020
1 parent 499605e commit 3b862ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: build binary
run: make build-linux
- name: run acceptance tests
run: make acceptance
run: sudo pip install virtualenv && make acceptance
- name: upload coverage report
uses: actions/upload-artifact@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: build binary
run: make build-linux
- name: run acceptance tests
run: make acceptance
run: sudo pip install virtualenv && make acceptance
- name: upload coverage report
uses: actions/upload-artifact@master
with:
Expand Down
5 changes: 1 addition & 4 deletions acceptance_tests/lib/ChartMuseum.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ def wait_for_chartmuseum(self):
seconds_waited += 1

def stop_chartmuseum(self):
if os.getenv('IS_BUSYBOX'):
self.run_command('pkill -9 KILLME')
else:
self.run_command('pkill -9 chartmuseum')
self.run_command('pkill -9 chartmuseum')
shutil.rmtree(common.STORAGE_DIR, ignore_errors=True)

def remove_chartmuseum_logs(self):
Expand Down
22 changes: 7 additions & 15 deletions scripts/acceptance.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex

PY_REQUIRES="requests==2.24.0 robotframework==3.2.1"
PY_REQUIRES="requests==2.24.0 robotframework==3.2.2"

REQUIRED_TEST_STORAGE_ENV_VARS=(
"TEST_STORAGE_AMAZON_BUCKET"
Expand Down Expand Up @@ -33,22 +33,14 @@ else
PLATFORM="linux"
fi

if [ -x "$(command -v busybox)" ]; then
export IS_BUSYBOX=1
fi

export PATH="$PWD/testbin:$PWD/bin/$PLATFORM/amd64:$PATH"

mkdir -p .robot/

if [ "$IS_BUSYBOX" != "1" ]; then
export HELM_HOME="$PWD/.helm"
helm init --client-only
if [ ! -d .venv/ ]; then
virtualenv -p $(which python3) .venv/
.venv/bin/python .venv/bin/pip install $PY_REQUIRES
fi
.venv/bin/robot --outputdir=.robot/ acceptance_tests/
else
robot --outputdir=.robot/ acceptance_tests/
export HELM_HOME="$PWD/.helm"
helm init --client-only
if [ ! -d .venv/ ]; then
virtualenv -p $(which python3) .venv/
.venv/bin/python .venv/bin/pip install $PY_REQUIRES
fi
.venv/bin/robot --outputdir=.robot/ acceptance_tests/
10 changes: 2 additions & 8 deletions scripts/setup_test_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ cd $DIR/../

export PATH="$PWD/testbin:$PATH"

if [ -x "$(command -v busybox)" ]; then
export IS_BUSYBOX=1
fi

main() {
if [ "$IS_BUSYBOX" != "1" ]; then
export HELM_HOME="$PWD/.helm"
install_helm
fi
export HELM_HOME="$PWD/.helm"
install_helm
package_test_charts
}

Expand Down

0 comments on commit 3b862ba

Please sign in to comment.