6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-11 13:52:32 +00:00

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

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'