Skip to content

Commit

Permalink
Update .gitlab-ci.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Anselmoo committed Jul 31, 2021
1 parent db20bc7 commit 32f00b3
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,34 @@ cache:
- venv/

before_script:
- python -V # Print out python version for debugging
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate

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
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

0 comments on commit 32f00b3

Please sign in to comment.