50 lines
1017 B
YAML
50 lines
1017 B
YAML
image: debian:sid
|
|
|
|
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 python3-pip gcc libmagickwand-dev
|
|
- pip3 install -r requirements.txt
|
|
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
|
|
|