diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a8af90eb7711dff99e4d5dad7d53dfe10bdbc10a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +# This file is a template, and might need editing before it works on your project. +# This file is a template, and might need editing before it works on your project. +image: python:latest + +before_script: + - python3 -V # Print out python version for debugging + +test: + script: + - python3 setup.py test + - pip3 install tox flake8 # you can also use tox + - tox -e py36,flake8 + +run: + script: + - python3 setup.py bdist_wheel + # an alternative approach is to install and run: + - pip3 install dist/* + # run the command here + artifacts: + paths: + - dist/*.whl + +pages: + script: + - pip3 install sphinx sphinx-rtd-theme + - cd doc ; make html + - mv build/html/ ../public/ + artifacts: + paths: + - public + only: + - master