diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0fa2d4..e03fe93 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 +