2017-01-26 23:23:53 +01:00
|
|
|
image: debian:sid
|
2017-01-26 23:07:35 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2017-01-26 23:11:38 +01:00
|
|
|
- build_docs
|
2017-01-26 23:07:35 +01:00
|
|
|
- test
|
2017-01-26 23:18:27 +01:00
|
|
|
- deploy_docs
|
2017-01-26 23:07:35 +01:00
|
|
|
# - review
|
2017-01-26 23:11:38 +01:00
|
|
|
|
|
|
|
after_script:
|
2017-01-26 23:07:35 +01:00
|
|
|
- rm -rf dist build docs/build openlut.egg-info
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2017-01-26 23:18:27 +01:00
|
|
|
before_script:
|
2017-01-26 23:20:57 +01:00
|
|
|
- apt-get update && apt-get -y install python3-pip gcc libmagickwand-dev
|
2017-01-26 23:07:35 +01:00
|
|
|
script:
|
|
|
|
- python3 setup.py sdist #Build source distribution.
|
|
|
|
- python3 setup.py bdist_wheel #Build Linux wheel.
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/*
|
|
|
|
|
2017-01-26 23:11:38 +01:00
|
|
|
build_docs:
|
2017-01-26 23:18:27 +01:00
|
|
|
stage: build_docs
|
|
|
|
before_script:
|
|
|
|
- pip3 install sphinx
|
2017-01-26 23:07:35 +01:00
|
|
|
script:
|
|
|
|
- ./mkDocs.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- docs/build/html
|
|
|
|
|
2017-01-26 23:11:38 +01:00
|
|
|
deploy_docs:
|
2017-01-26 23:18:27 +01:00
|
|
|
stage: deploy_docs
|
2017-01-26 23:07:35 +01:00
|
|
|
environment:
|
|
|
|
name: Documentation
|
|
|
|
url: https://www.sofusrose.com/openlut
|
2017-01-26 23:18:27 +01:00
|
|
|
script:
|
|
|
|
- docs/upload.sh
|
2017-01-26 23:07:35 +01:00
|
|
|
when: manual
|
|
|
|
|
|
|
|
# run tests using the binary built before.
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- python3 tests/suite.py
|
2017-01-26 23:18:27 +01:00
|
|
|
|