Verified Commit f4e6f587 authored by Sofus Albert Høgsbro Rose's avatar Sofus Albert Høgsbro Rose
Browse files

Fixed the yml file, I think, now.

parent b7304806
# 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment