forked from hgrecco/pint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
131 lines (122 loc) · 4.39 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
env:
- UNCERTAINTIES="N" NUMPY_VERSION=0
- UNCERTAINTIES="N" NUMPY_VERSION=1.6.2
- UNCERTAINTIES="N" NUMPY_VERSION=1.7.1
- UNCERTAINTIES="N" NUMPY_VERSION=1.8.2
- UNCERTAINTIES="N" NUMPY_VERSION=1.9.3
- UNCERTAINTIES="N" NUMPY_VERSION=1.10.4
- UNCERTAINTIES="Y" NUMPY_VERSION=0
- UNCERTAINTIES="Y" NUMPY_VERSION=1.6.2
- UNCERTAINTIES="Y" NUMPY_VERSION=1.7.1
- UNCERTAINTIES="Y" NUMPY_VERSION=1.8.2
- UNCERTAINTIES="Y" NUMPY_VERSION=1.9.3
- UNCERTAINTIES="Y" NUMPY_VERSION=1.10.4
branches:
only:
- master
- develop
before_install:
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- export ENV_NAME=travis
install:
- conda create -c mwcraig --yes -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION pip
- source activate $ENV_NAME
- if [ $TRAVIS_PYTHON_VERSION == '2.6' ]; then pip install unittest2; fi
- if [ $UNCERTAINTIES == 'Y' ]; then pip install uncertainties; fi
- if [ $NUMPY_VERSION != '0' ]; then conda install -c mwcraig --yes numpy==$NUMPY_VERSION; fi
- if [ $TRAVIS_PYTHON_VERSION == '3.2' ]; then pip install coverage==3.7.1; else pip install coverage; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' && $NUMPY_VERSION == 1.10.4 && $UNCERTAINTIES == "Y" ]]; then pip install serialize pyyaml; fi
- pip install coveralls
script:
- if [ $TRAVIS_PYTHON_VERSION == '2.6' ]; then coverage run -p --source=pint --omit="*test*","*compat*" setup.py test; fi
- if [ $TRAVIS_PYTHON_VERSION != '2.6' ]; then python -bb -m coverage run -p --source=pint --omit="*test*","*compat*" setup.py test; fi
- coverage combine
- coverage report -m
after_success:
- coveralls --verbose
matrix:
exclude:
# Do not edit after this line
- python: "3.5"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.7.1
- python: "3.5"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.8.2
- python: "3.5"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.6.2
- python: "3.5"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.7.1
- python: "3.5"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.8.2
- python: "3.5"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.6.2
- python: "3.4"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.7.1
- python: "3.4"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.6.2
- python: "3.4"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.7.1
- python: "3.4"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.6.2
- python: "3.3"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.9.3
- python: "3.3"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.6.2
- python: "3.3"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.10.4
- python: "3.3"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.6.2
- python: "3.3"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.9.3
- python: "3.3"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.10.4
- python: "3.2"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.7.1
- python: "3.2"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.8.2
- python: "3.2"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.9.3
- python: "3.2"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.6.2
- python: "3.2"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.10.4
- python: "3.2"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.7.1
- python: "3.2"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.8.2
- python: "3.2"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.6.2
- python: "3.2"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.9.3
- python: "3.2"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.10.4
- python: "2.6"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.9.3
- python: "2.6"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.10.4
- python: "2.6"
env: UNCERTAINTIES="Y" NUMPY_VERSION=1.9.3
- python: "2.6"
env: UNCERTAINTIES="N" NUMPY_VERSION=1.10.4