forked from ohld/igbot
/
.travis.yml
40 lines (34 loc) 路 816 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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- pip install -r requirements.txt
- pip install pytest-cov
- pip install codecov
script:
- pyflakes instabot tests examples
- pycodestyle --ignore=E501 instabot tests
- pycodestyle --ignore=E402,E501 examples
- py.test --cov=instabot --cov-report=xml
- codecov
after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bumpversion --verbose minor && bash push.sh; fi
branches:
only:
- master
cache: pip
# deploy:
# provider: pypi
# user: $PYPI_USERNAME
# password: $PYPI_PASSWORD
# on:
# branch: master
# tags: false