Skip to content

Commit

Permalink
Move to an included CI configuration file
Browse files Browse the repository at this point in the history
This makes it easier to debug CI and does not pollute the repo with
useless commits.
  • Loading branch information
regisb committed Oct 2, 2020
1 parent e8e44f5 commit 0baddb1
Showing 1 changed file with 3 additions and 65 deletions.
68 changes: 3 additions & 65 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 0baddb1

Please sign in to comment.