Move to an included CI configuration file

This makes it easier to debug CI and does not pollute the repo with
useless commits.
This commit is contained in:
Régis Behmo 2020-10-02 15:02:26 +02:00
parent e8e44f50b0
commit 0baddb15c2
1 changed files with 3 additions and 65 deletions

View File

@ -1,65 +1,3 @@
stages:
- test
- build
- deploy:images
- deploy:pypi
- deploy:docs
test:
script:
- make bootstrap-dev
- make test
build:images:
script:
- make ci-bootstrap-images
- tutor images build all
stage: build
build:docs:
script:
- pip install -r requirements/docs.txt
- make docs
artifacts:
paths:
- docs/_build/html
stage: build
build:pypi:
script:
- make bootstrap-dev
- make build-pythonpackage
artifacts:
paths:
- dist/
stage: build
deploy:images:
script:
- make ci-bootstrap-images
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- tutor images push all
only:
- tags
stage: deploy:images
deploy:pypi:
script:
- make push-pythonpackage
dependencies:
- build:pypi
only:
- tags
stage: deploy:pypi
deploy:docs:
dependencies:
- build:docs
script:
- rm -rf /var/www/docs.tutor.overhang.io
- mv docs/_build/html/ /var/www/docs.tutor.overhang.io
only:
- tags
tags:
- private
stage: deploy:docs
include:
- project: 'community/tutor-ci'
file: 'tutor-gitlab-ci.yml'