Fixed the yml file, I think, now.
parent
b7304806d7
commit
f4e6f5877f
|
@ -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
|
image: sorose/graphics:v8
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- build_docs
|
- build_docs
|
||||||
- deploy_docs
|
|
||||||
- test
|
- test
|
||||||
|
- deploy_docs
|
||||||
# - review
|
# - review
|
||||||
|
|
||||||
before_script:
|
|
||||||
- apt update && apt -y install python3-pip gcc libmagickwand-dev
|
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- rm -rf dist build docs/build openlut.egg-info
|
- rm -rf dist build docs/build openlut.egg-info
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt update && apt -y install python3-pip gcc libmagickwand-dev
|
||||||
script:
|
script:
|
||||||
- python3 setup.py sdist #Build source distribution.
|
- python3 setup.py sdist #Build source distribution.
|
||||||
- python3 setup.py bdist_wheel #Build Linux wheel.
|
- python3 setup.py bdist_wheel #Build Linux wheel.
|
||||||
|
@ -27,7 +22,9 @@ build:
|
||||||
- dist/*
|
- dist/*
|
||||||
|
|
||||||
build_docs:
|
build_docs:
|
||||||
stage: build-docs
|
stage: build_docs
|
||||||
|
before_script:
|
||||||
|
- pip3 install sphinx
|
||||||
script:
|
script:
|
||||||
- ./mkDocs.sh
|
- ./mkDocs.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -35,10 +32,12 @@ build_docs:
|
||||||
- docs/build/html
|
- docs/build/html
|
||||||
|
|
||||||
deploy_docs:
|
deploy_docs:
|
||||||
stage: deploy-docs
|
stage: deploy_docs
|
||||||
environment:
|
environment:
|
||||||
name: Documentation
|
name: Documentation
|
||||||
url: https://www.sofusrose.com/openlut
|
url: https://www.sofusrose.com/openlut
|
||||||
|
script:
|
||||||
|
- docs/upload.sh
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
# run tests using the binary built before.
|
# run tests using the binary built before.
|
||||||
|
@ -46,3 +45,4 @@ test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- python3 tests/suite.py
|
- python3 tests/suite.py
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue