Commit 5ac37824 authored by Nathan/Eilisha Shiraini's avatar Nathan/Eilisha Shiraini
Browse files

Added CI file

parent 5a932183
stages:
- pre
- build
- dist
- docs
apidoc:
stage : pre
image: $CI_REGISTRY/docker/whlbuild
script:
- sphinx-apidoc -o _doc colorcode
artifacts:
name: "$CI_JOB_NAME"
paths:
- _doc
expire_in: 2 days
dependencies: []
build_ext:
stage: build
image: $CI_REGISTRY/docker/whlbuild
script:
- python setup.py build_ext
name: "$CI_JOB_NAME"
paths:
- build
dependencies: []
doc-html:
stage: docs
image: $CI_REGISTRY/docker/whlbuild
allow_failure: true
script:
- sphinx-build -b html . _build/html
artifacts:
name: "$CI_JOB_NAME"
paths:
- _build/html
dependencies:
- apidoc
doc-pdf:
stage: docs
image: $CI_REGISTRY/docker/docbuild
allow_failure: true
script:
- sphinx-build -b latex . _build/latex
- cd _build/latex
- latexmk -xelatex -pdf --interaction=batchmode ColorCode.tex
artifacts:
name: "$CI_JOB_NAME"
paths:
- _build/latex/ColorCode.pdf
dependencies:
- apidoc
module:
stage: dist
image: $CI_REGISTRY/docker/whlbuild
script:
- python -m compileall colorcode
- python -O -m compileall colorcode
- python -OO -m compileall colorcode
artifacts:
name: "$CI_JOB_NAME"
paths:
- colorcode
dependencies:
- build_ext
sources:
stage: dist
image: $CI_REGISTRY/docker/whlbuild
script:
- python -OO setup.py sdist
artifacts:
name: "$CI_JOB_NAME"
paths:
- dist/*.tar.gz
dependencies:
- build_ext
wheel:
stage: build
image: $CI_REGISTRY/docker/whlbuild
script:
- python -OO setup.py bdist_wheel
artifacts:
name: "$CI_JOB_NAME"
paths:
- dist/*.whl
dependencies:
- build_ext
egg:
stage: build
image: $CI_REGISTRY/docker/whlbuild
when: manual
script:
- python setup.py bdist_egg
artifacts:
name: "$CI_JOB_NAME"
paths:
- dist/*.egg
dependencies:
- build_ext
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