51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
image: python:3.5
|
|
|
|
stages:
|
|
- build
|
|
- build_docs
|
|
- test
|
|
- deploy_docs
|
|
# - review
|
|
|
|
after_script:
|
|
- rm -rf dist build docs/build openlut.egg-info
|
|
|
|
build:
|
|
stage: build
|
|
before_script:
|
|
- apt-get update && apt-get -y install gcc libmagickwand-dev make
|
|
- pip3 install -r requirements.txt
|
|
- ./mkDocs.sh
|
|
script:
|
|
- python3 setup.py sdist #Build source distribution.
|
|
- python3 setup.py bdist_wheel #Build Linux wheel.
|
|
artifacts:
|
|
paths:
|
|
- dist/*
|
|
|
|
build_docs:
|
|
stage: build_docs
|
|
before_script:
|
|
- pip3 install sphinx
|
|
script:
|
|
- ./mkDocs.sh
|
|
artifacts:
|
|
paths:
|
|
- docs/build/html
|
|
|
|
deploy_docs:
|
|
stage: deploy_docs
|
|
environment:
|
|
name: Documentation
|
|
url: https://www.sofusrose.com/openlut
|
|
script:
|
|
- docs/upload.sh
|
|
when: manual
|
|
|
|
# run tests using the binary built before.
|
|
test:
|
|
stage: test
|
|
script:
|
|
- python3 tests/suite.py
|
|
|