mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Standardize on 4 spaces for circle ci config indent
Previously was a mix of 2 and 4 spaces
This commit is contained in:
@@ -1,69 +1,68 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
docker:
|
docker:
|
||||||
- image: continuumio/miniconda3:4.5.4
|
- image: continuumio/miniconda3:4.5.4
|
||||||
|
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
# Download and cache dependencies
|
# Download and cache dependencies
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
- v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
||||||
- v1-dependencies-miniconda3-4.5.4-
|
- v1-dependencies-miniconda3-4.5.4-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: install dependencies
|
name: install dependencies
|
||||||
command: |
|
command: |
|
||||||
pip install -r dev-requirements.txt
|
pip install -r dev-requirements.txt
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- /opt/conda
|
- /opt/conda
|
||||||
key: v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
key: v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: run unit tests
|
name: run unit tests
|
||||||
command: |
|
command: |
|
||||||
py.test tests/
|
py.test tests/
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
docker:
|
docker:
|
||||||
- image: docker:18.05.0-ce-git
|
- image: docker:18.05.0-ce-git
|
||||||
# Run full installer test
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: setup python3
|
|
||||||
command: |
|
|
||||||
apk add --no-cache python3
|
|
||||||
|
|
||||||
- setup_remote_docker
|
steps:
|
||||||
|
- run:
|
||||||
|
name: setup python3
|
||||||
|
command: |
|
||||||
|
apk add --no-cache python3
|
||||||
|
|
||||||
- run:
|
- setup_remote_docker
|
||||||
name: build systemd image
|
|
||||||
command: |
|
|
||||||
python3 .circleci/integration-test.py build-image
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: start systemd image
|
name: build systemd image
|
||||||
command: |
|
command: |
|
||||||
python3 .circleci/integration-test.py start-container
|
python3 .circleci/integration-test.py build-image
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: run tljh installer
|
name: start systemd image
|
||||||
command: |
|
command: |
|
||||||
python3 .circleci/integration-test.py copy . /srv/src
|
python3 .circleci/integration-test.py start-container
|
||||||
python3 .circleci/integration-test.py run 'python3 /srv/src/bootstrap/bootstrap.py'
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: check jupyterhub is up
|
name: run tljh installer
|
||||||
command: |
|
command: |
|
||||||
python3 .circleci/integration-test.py run 'curl -L --fail http://127.0.0.1'
|
python3 .circleci/integration-test.py copy . /srv/src
|
||||||
|
python3 .circleci/integration-test.py run 'python3 /srv/src/bootstrap/bootstrap.py'
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: check jupyterhub is up
|
||||||
|
command: |
|
||||||
|
python3 .circleci/integration-test.py run 'curl -L --fail http://127.0.0.1'
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user