Fixed the yml file, I think, now.

master
Sofus Albert Høgsbro Rose 2017-01-26 17:18:27 -05:00
parent b7304806d7
commit f4e6f5877f
Signed by: so-rose
GPG Key ID: 3D01BE95F3EFFEB9
1 changed files with 10 additions and 10 deletions

View File

@ -1,24 +1,19 @@
# This file is a template, and might need editing before it works on your project.
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: sorose/graphics:v8
stages:
- build
- build_docs
- deploy_docs
- test
- deploy_docs
# - review
before_script:
- apt update && apt -y install python3-pip gcc libmagickwand-dev
after_script:
- rm -rf dist build docs/build openlut.egg-info
build:
stage: build
before_script:
- apt update && apt -y install python3-pip gcc libmagickwand-dev
script:
- python3 setup.py sdist #Build source distribution.
- python3 setup.py bdist_wheel #Build Linux wheel.
@ -27,7 +22,9 @@ build:
- dist/*
build_docs:
stage: build-docs
stage: build_docs
before_script:
- pip3 install sphinx
script:
- ./mkDocs.sh
artifacts:
@ -35,10 +32,12 @@ build_docs:
- docs/build/html
deploy_docs:
stage: 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.
@ -46,3 +45,4 @@ test:
stage: test
script:
- python3 tests/suite.py