forked from ohld/igbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) 路 653 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
language: python
dist: xenial
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"
- "nightly"
- "pypy"
- "pypy3.5"
env:
- PRE_COMMIT_CMD=""
matrix:
include:
- name: "pre-commit"
python: "3.7"
env:
- PRE_COMMIT_CMD="pre-commit run --all-files --show-diff-on-failure"
allow_failures:
- python: "3.8-dev"
- python: "nightly"
install:
- pip install tox-travis codecov bumpversion pre_commit
script:
- tox
- $PRE_COMMIT_CMD
after_success:
- codecov
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bumpversion --verbose minor && bash push.sh; fi
cache: pip