Commit e08caf2e authored by Jiří Helebrant's avatar Jiří Helebrant
Browse files

Configure Gitlab CI for tests and docs

parent 75a914f3
Pipeline #63470 passed with stages
in 2 minutes and 27 seconds
image: python:3.6-alpine
stages:
- test
- build-docs
- publish-docs
test:
stage: test
before_script:
- apk add git make
- pip install -r requirements.txt
script:
- make test
build-docs:
stage: build-docs
before_script:
- apk add git make
- pip install -r requirements.txt
script:
- cd docs
- make html
artifacts:
paths:
- docs/_build/html
publish-docs:
stage: publish-docs
dependencies:
- build-docs
script:
- mv docs/_build/html public
artifacts:
paths:
- public
only:
- tags
......@@ -47,9 +47,6 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"
.PHONY: upload
upload:
rsync -vr --delete --exclude '.ssh' _build/html/ yangson-upload@static.labs.nic.cz:
.PHONY: clean
clean:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment