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:
@@ -25,6 +25,61 @@ commands:
|
|||||||
command: |
|
command: |
|
||||||
apt-get update --yes && apt-get install --yes python3 python3-venv git make
|
apt-get update --yes && apt-get install --yes python3 python3-venv git make
|
||||||
|
|
||||||
|
build_systemd_image:
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: build systemd image
|
||||||
|
command: |
|
||||||
|
.circleci/integration-test.py build-image
|
||||||
|
|
||||||
|
basic_tests:
|
||||||
|
parameters:
|
||||||
|
upgrade:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Run basic tests
|
||||||
|
command: |
|
||||||
|
.circleci/integration-test.py run-test basic-tests \
|
||||||
|
test_hub.py test_install.py test_extensions.py \
|
||||||
|
<< parameters.upgrade >>
|
||||||
|
|
||||||
|
admin_tests:
|
||||||
|
parameters:
|
||||||
|
upgrade:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Run admin tests
|
||||||
|
command: |
|
||||||
|
.circleci/integration-test.py run-test \
|
||||||
|
--installer-args "--admin admin:admin" \
|
||||||
|
basic-tests test_admin_installer.py \
|
||||||
|
<< parameters.upgrade >>
|
||||||
|
|
||||||
|
plugin_tests:
|
||||||
|
parameters:
|
||||||
|
upgrade:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Run plugin tests
|
||||||
|
command: |
|
||||||
|
.circleci/integration-test.py run-test \
|
||||||
|
--installer-args "--plugin /srv/src/integration-tests/plugins/simplest" \
|
||||||
|
plugins test_simplest_plugin.py \
|
||||||
|
<< parameters.upgrade >>
|
||||||
|
|
||||||
|
bootstrap_checks:
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Run bootstrap checks
|
||||||
|
command: |
|
||||||
|
py.test integration-tests/test_bootstrap.py
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
executor: ubuntu_docker
|
executor: ubuntu_docker
|
||||||
@@ -73,36 +128,44 @@ jobs:
|
|||||||
apk add --no-cache python3 pytest
|
apk add --no-cache python3 pytest
|
||||||
|
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
|
|
||||||
|
- build_systemd_image
|
||||||
|
|
||||||
|
- basic-tests
|
||||||
|
|
||||||
|
- admin_tests
|
||||||
|
|
||||||
|
- plugin_tests
|
||||||
|
|
||||||
|
- bootstrap_checks
|
||||||
|
|
||||||
|
|
||||||
|
upgrade-test:
|
||||||
|
docker:
|
||||||
|
- image: docker:18.05.0-ce-git
|
||||||
|
|
||||||
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: build systemd image
|
name: setup python3
|
||||||
command: |
|
command: |
|
||||||
.circleci/integration-test.py build-image
|
apk add --no-cache python3 pytest
|
||||||
|
|
||||||
- run:
|
- checkout
|
||||||
name: Run basic tests
|
|
||||||
command: |
|
|
||||||
.circleci/integration-test.py run-test basic-tests test_hub.py test_install.py test_extensions.py
|
|
||||||
|
|
||||||
- run:
|
- setup_remote_docker
|
||||||
name: Run admin tests
|
|
||||||
command: |
|
|
||||||
.circleci/integration-test.py run-test --installer-args "--admin admin:admin" basic-tests test_admin_installer.py
|
|
||||||
|
|
||||||
|
- build_systemd_image
|
||||||
|
|
||||||
- run:
|
- basic-tests:
|
||||||
name: Run plugin tests
|
upgrade: "--upgrade"
|
||||||
command: |
|
|
||||||
.circleci/integration-test.py run-test \
|
|
||||||
--installer-args "--plugin /srv/src/integration-tests/plugins/simplest" \
|
|
||||||
plugins test_simplest_plugin.py
|
|
||||||
|
|
||||||
- run:
|
- admin_tests:
|
||||||
name: Run bootstrap checks
|
upgrade: "--upgrade"
|
||||||
command: |
|
|
||||||
py.test integration-tests/test_bootstrap.py
|
|
||||||
|
|
||||||
|
- plugin_tests:
|
||||||
|
upgrade: "--upgrade"
|
||||||
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
|
|||||||
Reference in New Issue
Block a user