-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (30 loc) · 1007 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: python
python:
- '3.9'
install:
- pip install -U -r requirements.txt
- pip install --no-deps -e .
script:
- pytest piperoni
- black --check piperoni
- cd docs; make html; cd ..;
# only run the validate-version-bump.sh script on PR builds against develop, since those have access to a "develop" reference to git show the version
# following https://docs.travis-ci.com/user/environment-variables/#convenience-variables
# the pull request isn't set to true if its a PR; its just set to false if its not.
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "develop" ]; then bash ./scripts/validate-version-bump.sh; fi
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GH_SECRET_TOKEN"
keep_history: true
local_dir: "./docs/build/html/"
on:
branch: 'main'
python: '3.9' # only need this to run once
- provider: pypi
user: CitrineInformatics
password: "$PYPI_PASSWORD"
distributions: sdist bdist_wheel
skip_existing: true
on:
branch: 'main'