-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
42 lines (34 loc) · 919 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
31
32
33
34
35
36
37
38
39
40
41
42
# Config file for automatic testing at travis-ci.org
# after_success: travis_wait 30 codecov --token=d25a9eb9-4e77-4d38-8862-6d447be11830
language: python
python:
- "3.7"
install:
- pip install --upgrade pip
- pip install pytest-cov
- pip install cython
- pip install -U tox-travis codecov black
- python setup.py install
jobs:
include:
# Deploy Documentation
- stage: Docs
python: "3.7"
if: type != cron
# Use previously defined before_install
install:
- pip install -r docs/requirements.txt
script:
- make clean -C docs/ html
- stage: black
python: "3.7"
script:
- travis_wait black --check KD_Lib
- travis_wait black --check tests
after_success: # Nothing to do
deploy:
- provider: pypi
username: "__token__"
password: $PYPI_TOKEN
on:
tags: true