-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (30 loc) · 850 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
env:
global:
- CC_TEST_REPORTER_ID=f240117dcd5d8f0bfde9f3eebd91b6e467d52109db7d6b85dce0b231477a7bcd
language: python
python:
- "3.8"
install: pip install tox-travis mkdocs mkdocs-material poetry
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: tox
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
before_deploy:
- mkdocs build --verbose --clean --strict
- poetry config pypi-token.pypi $pypi_token
- poetry build
deploy:
- provider: script
script: poetry publish
skip_cleanup: true
on:
tags: true
- provider: pages
skip_cleanup: true
github_token: $github_token
local_dir: site
on:
branch: master