-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (103 loc) · 2.78 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
sudo: required
language: python
matrix:
include:
# Ubuntu 12.04.5 LTS
- os: linux
python: '2.6'
env: UBUNTU_VERSION=12.04.5_LTS
- os: linux
python: '2.7'
env: UBUNTU_VERSION=12.04.5_LTS
- os: linux
python: '3.3'
env: UBUNTU_VERSION=12.04.5_LTS
- os: linux
python: '3.4'
env: UBUNTU_VERSION=12.04.5_LTS
- os: linux
python: '3.5'
env: UBUNTU_VERSION=12.04.5_LTS
# Ubuntu 14.04.3 LTS
- os: linux
dist: trusty
python: '2.6'
env: UBUNTU_VERSION=14.04.3_LTS
- os: linux
dist: trusty
python: '2.7'
env: UBUNTU_VERSION=14.04.3_LTS
- os: linux
dist: trusty
python: '3.3'
env: UBUNTU_VERSION=14.04.3_LTS
- os: linux
dist: trusty
python: '3.4'
env: UBUNTU_VERSION=14.04.3_LTS
- os: linux
dist: trusty
python: '3.5'
env: UBUNTU_VERSION=14.04.3_LTS
# OS X 10.10
#- os: osx
# osx_image: xcode6.4
# language: generic
# env: PYENV_VERSION=2.7.12
#- os: osx
# osx_image: xcode6.4
# language: generic
# env: PYENV_VERSION=3.5.1
# OS X 10.11
- os: osx
osx_image: xcode7.3
language: generic
env: PYENV_VERSION=2.7.12
- os: osx
osx_image: xcode7.3
language: generic
env: PYENV_VERSION=3.6.0
# OS X 10.11
#- os: osx
# osx_image: xcode8
# language: generic
# env: PYENV_VERSION=2.7.12
#- os: osx
# osx_image: xcode8
# language: generic
# env: PYENV_VERSION=3.5.1
# OS X 10.12
- os: osx
osx_image: xcode8.1
language: generic
env: PYENV_VERSION=2.7.12
- os: osx
osx_image: xcode8.1
language: generic
env: PYENV_VERSION=3.6.0
# OS X 10.12
- os: osx
osx_image: xcode8.2
language: generic
env: PYENV_VERSION=2.7.12
- os: osx
osx_image: xcode8.2
language: generic
env: PYENV_VERSION=3.6.0
before_install:
- if [[ "$PYENV_VERSION" == "2.7.12" ]]; then echo "pytest 2"; fi
- if [[ "$PYENV_VERSION" == "2.7.12" ]]; then virtualenv venv -p python; fi
- if [[ "$PYENV_VERSION" == "2.7.12" ]]; then source venv/bin/activate; fi
- if [[ "$PYENV_VERSION" == "3.6.0" ]]; then echo "pytest 3"; fi
- if [[ "$PYENV_VERSION" == "3.6.0" ]]; then brew update; fi
- if [[ "$PYENV_VERSION" == "3.6.0" ]]; then brew install python3; fi
- if [[ "$PYENV_VERSION" == "3.6.0" ]]; then virtualenv venv -p python3; fi
- if [[ "$PYENV_VERSION" == "3.6.0" ]]; then source venv/bin/activate; fi
virtualenv:
# without this, python 3.5 will not work
system_site_packages: false
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
#script: nosetests
script: sh shell_test.sh