2017-01-26 23:38:19 +01:00
|
|
|
image: python:3.5
|
2017-01-26 23:07:35 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2017-01-27 00:35:08 +01:00
|
|
|
#~ - deploy
|
2017-01-26 23:07:35 +01:00
|
|
|
# - review
|
2017-01-26 23:11:38 +01:00
|
|
|
|
2017-01-27 00:24:38 +01:00
|
|
|
|
|
|
|
before_script:
|
2017-01-27 00:35:08 +01:00
|
|
|
- apt-get update && apt-get -y install git-lfs
|
|
|
|
- git lfs install
|
2017-01-27 00:24:38 +01:00
|
|
|
- pip3 install -U pip setuptools wheel
|
|
|
|
- pip3 install -r requirements.txt
|
|
|
|
- python3 setup.py build_ext -i #Need the C++ extension only.
|
|
|
|
- mkdir testpath
|
|
|
|
|
2017-01-26 23:07:35 +01:00
|
|
|
build:
|
|
|
|
stage: build
|
2017-01-27 00:24:38 +01:00
|
|
|
script:
|
2017-01-26 23:07:35 +01:00
|
|
|
- python3 setup.py sdist #Build source distribution.
|
|
|
|
- python3 setup.py bdist_wheel #Build Linux wheel.
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-01-27 00:24:38 +01:00
|
|
|
- dist
|
|
|
|
|
|
|
|
# run tests using the binary built before.
|
2017-01-26 23:07:35 +01:00
|
|
|
|
2017-01-26 23:11:38 +01:00
|
|
|
build_docs:
|
2017-01-27 00:24:38 +01:00
|
|
|
stage: build
|
2017-01-26 23:07:35 +01:00
|
|
|
script:
|
|
|
|
- ./mkDocs.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- docs/build/html
|
2017-01-27 00:24:38 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2017-01-27 00:35:08 +01:00
|
|
|
- git lfs pull
|
2017-01-27 00:24:38 +01:00
|
|
|
- python3 tests/suite.py
|
|
|
|
|
2017-01-27 00:35:08 +01:00
|
|
|
#~ deploy_docs:
|
|
|
|
#~ stage: deploy
|
|
|
|
#~ environment:
|
|
|
|
#~ name: Documentation
|
|
|
|
#~ url: https://www.sofusrose.com/openlut
|
|
|
|
#~ script:
|
|
|
|
#~ - docs/upload.sh
|
2017-01-27 00:24:38 +01:00
|
|
|
#~ when: manual
|
|
|
|
|
2017-01-26 23:07:35 +01:00
|
|
|
|
2017-01-26 23:18:27 +01:00
|
|
|
|