-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
51 lines (41 loc) · 917 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
43
44
45
46
47
48
49
50
51
language: python
sudo: false
python:
- "3.5"
# - "3.6"
#services:
# - redis-server
# command to install dependencies
install:
- pip install --upgrade pip wheel
- pip install --upgrade setuptools
- pip install tox-travis
script:
# Only run tests if there's changes in python code
- CHANGES=$(git diff --name-only aiotasks/)
- if [[ $CHANGES != "" ]]; then tox; fi
after_success:
- pip install codecov
- codecov
os:
- linux
cache:
directories:
- $HOME/.cache/pip
deploy:
# Deploy to PyPI
- provider: script
user: $PYPI_USER
password: $PYPI_PASSWD
distributions: "sdist"
on:
branch: master
tags: true
condition: "CHANGES=$(git diff --name-only aiotasks/) && if [[ $CHANGES != '' ]]; then tox; fi"
#- provider: releases
# api_key: $GITHUB_AUTH
# file: dist/*.tar.gz
# file_glob: true
# skip_cleanup: true
# on:
# tags: true