-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
56 lines (53 loc) · 1.38 KB
/
.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
52
53
54
55
56
language: python
matrix:
include:
- os: linux
python: 2.7
- os: osx
python: 2.7
env: PY2=true
sudo: required
language: generic
- os: linux
python: 3.3
- os: osx
python: 3.3
env: PY2=false
sudo: required
language: generic
- os: linux
python: 3.4
- os: osx
python: 3.4
env: PY2=false
sudo: required
language: generic
- os: linux
python: 3.5
- os: osx
python: 3.5
env: PY2=false
sudo: required
language: generic
- os: linux
python: 3.6
- os: osx
python: 3.6
env: PY2=false
sudo: required
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY2" == "true" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY2" == "true" ]]; then virtualenv venv -p python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY2" == "false" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY2" == "false" ]]; then virtualenv venv -p python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
install: "python setup.py install"
script: "python setup.py test"
notifications:
email:
recipients:
on_success: change
on_failure: always