Add upgrade test

This commit is contained in:
GeorgianaElena
2021-03-29 14:05:03 +03:00
parent a38b27ebeb
commit 2ff60d2ce6
3 changed files with 41 additions and 256 deletions

View File

@@ -80,70 +80,3 @@ commands:
command: |
py.test integration-tests/test_bootstrap.py -s
jobs:
<<<<<<< HEAD
integration-test:
docker:
- image: docker:18.05.0-ce-git
steps:
- run:
name: setup python3
command: |
apk add --no-cache python3 pytest
- checkout
- setup_remote_docker
- build_systemd_image
- bootstrap_checks
- basic_tests
- admin_tests
- plugin_tests
upgrade-test:
docker:
- image: docker:18.05.0-ce-git
steps:
- run:
name: Check upgrade testing
command: |
if [ "$CIRCLE_BRANCH" == "master" ]; then
echo "On master, no upgrade to test..."
circleci-agent step halt
else
echo "PR detected, testing upgrade..."
fi
- run:
name: setup python3
command: |
apk add --no-cache python3 pytest
- checkout
- setup_remote_docker
- build_systemd_image
- basic_tests:
upgrade: "--upgrade"
- admin_tests:
upgrade: "--upgrade"
- plugin_tests:
upgrade: "--upgrade"
workflows:
version: 2
all-tests:
jobs:
- upgrade-test