mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add upgrade test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user