32 lines
680 B
YAML
32 lines
680 B
YAML
# This file is a template, and might need editing before it works on your project.
|
|
image: python:latest
|
|
|
|
before_script:
|
|
- python -V # Print out python version for debugging
|
|
|
|
test:
|
|
script:
|
|
- python setup.py test
|
|
- pip install tox flake8 # you can also use tox
|
|
- tox -e py36,flake8
|
|
|
|
run:
|
|
script:
|
|
- python setup.py bdist_wheel
|
|
# an alternative approach is to install and run:
|
|
- pip install dist/*
|
|
# run the command here
|
|
artifacts:
|
|
paths:
|
|
- dist/*.whl
|
|
|
|
pages:
|
|
script:
|
|
- pip install sphinx sphinx-rtd-theme
|
|
- cd doc ; make html
|
|
- mv build/html/ ../public/
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|