mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Get PR branch path
This commit is contained in:
@@ -45,9 +45,10 @@ commands:
|
|||||||
name: Run basic tests
|
name: Run basic tests
|
||||||
command: |
|
command: |
|
||||||
CIRCLE_PR_BRANCH=`curl -s https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls/$CIRCLE_PR_NUMBER | grep '"ref":' | grep -v "master" | cut -d '"' -f4`
|
CIRCLE_PR_BRANCH=`curl -s https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls/$CIRCLE_PR_NUMBER | grep '"ref":' | grep -v "master" | cut -d '"' -f4`
|
||||||
|
BRANCH=git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH
|
||||||
.circleci/integration-test.py run-test basic-tests \
|
.circleci/integration-test.py run-test basic-tests \
|
||||||
test_hub.py test_install.py test_extensions.py \
|
test_hub.py test_install.py test_extensions.py \
|
||||||
<< parameters.upgrade >> $CIRCLE_PR_BRANCH
|
<< parameters.upgrade >> $BRANCH
|
||||||
|
|
||||||
admin_tests:
|
admin_tests:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -141,6 +142,10 @@ jobs:
|
|||||||
name: setup python3
|
name: setup python3
|
||||||
command: |
|
command: |
|
||||||
apk add --no-cache python3 pytest
|
apk add --no-cache python3 pytest
|
||||||
|
- run:
|
||||||
|
name: install curl
|
||||||
|
command: |
|
||||||
|
apk add curl curl-dev
|
||||||
|
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
@@ -149,27 +154,18 @@ jobs:
|
|||||||
- build_systemd_image
|
- build_systemd_image
|
||||||
|
|
||||||
- basic_tests:
|
- basic_tests:
|
||||||
branch_path: $CIRCLE_PR_BRANCH
|
|
||||||
|
|
||||||
- admin_tests:
|
- admin_tests:
|
||||||
branch_path: 'git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH'
|
|
||||||
|
|
||||||
- plugin_tests:
|
- plugin_tests:
|
||||||
branch_path: 'git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH'
|
|
||||||
|
|
||||||
- bootstrap_checks:
|
- bootstrap_checks:
|
||||||
branch_path: 'git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH'
|
|
||||||
|
|
||||||
|
|
||||||
upgrade-test:
|
upgrade-test:
|
||||||
docker:
|
docker:
|
||||||
- image: docker:18.05.0-ce-git
|
- image: docker:18.05.0-ce-git
|
||||||
|
|
||||||
environment:
|
|
||||||
CIRCLE_PR_BRANCH: |
|
|
||||||
$(curl -s https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls/$CIRCLE_PR_NUMBER \
|
|
||||||
| grep '"ref":' | grep -v "master" | cut -d '"' -f4)
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: setup python3
|
name: setup python3
|
||||||
@@ -184,15 +180,12 @@ jobs:
|
|||||||
|
|
||||||
- basic_tests:
|
- basic_tests:
|
||||||
upgrade: "--upgrade"
|
upgrade: "--upgrade"
|
||||||
branch_path: 'git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH'
|
|
||||||
|
|
||||||
- admin_tests:
|
- admin_tests:
|
||||||
upgrade: "--upgrade"
|
upgrade: "--upgrade"
|
||||||
branch_path: "git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH"
|
|
||||||
|
|
||||||
- plugin_tests:
|
- plugin_tests:
|
||||||
upgrade: "--upgrade"
|
upgrade: "--upgrade"
|
||||||
branch_path: "git+https://github.com/$CIRCLE_PROJECT_USERNAME/the-littlest-jupyterhub.git@$CIRCLE_PR_BRANCH"
|
|
||||||
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
|
|||||||
Reference in New Issue
Block a user