1
1
sudo : false
2
2
language : python
3
+ # Default Python version is usually 2.7
4
+ python : 3.5
3
5
4
- # To turn off cached miniconda, cython files and compiler cache comment out the
5
- # USE_CACHE=true line for the build in the matrix below. To delete caches go to
6
- # https://travis-ci.org/OWNER/REPOSITORY/caches or run
6
+ # To turn off cached cython files and compiler cache
7
+ # set NOCACHE-true
8
+ # To delete caches go to https://travis-ci.org/OWNER/REPOSITORY/caches or run
7
9
# travis cache --delete inside the project directory from the travis command line client
8
10
# The cash directories will be deleted if anything in ci/ changes in a commit
9
11
cache :
12
+ ccache : true
10
13
directories :
11
- - $HOME/miniconda # miniconda cache
12
14
- $HOME/.cache # cython cache
13
15
- $HOME/.ccache # compiler cache
14
16
@@ -24,188 +26,88 @@ git:
24
26
25
27
matrix :
26
28
fast_finish : true
29
+ exclude :
30
+ # Exclude the default Python 3.5 build
31
+ - python : 3.5
27
32
include :
28
- - language : objective-c
29
- os : osx
30
- compiler : clang
31
- osx_image : xcode6.4
33
+ - os : osx
34
+ language : generic
32
35
env :
33
- - PYTHON_VERSION=3.5
34
- - JOB_NAME : " 35_osx"
35
- - TEST_ARGS="--skip-slow --skip-network"
36
- - BUILD_TYPE=conda
37
- - JOB_TAG=_OSX
38
- - TRAVIS_PYTHON_VERSION=3.5
39
- - CACHE_NAME="35_osx"
40
- - USE_CACHE=true
41
- - python : 2.7
36
+ - JOB="3.5_OSX" TEST_ARGS="--skip-slow --skip-network"
37
+ - os : linux
42
38
env :
43
- - PYTHON_VERSION=2.7
44
- - JOB_NAME : " 27_slow_nnet_LOCALE"
45
- - TEST_ARGS="--only-slow --skip-network"
46
- - LOCALE_OVERRIDE="zh_CN.UTF-8"
47
- - FULL_DEPS=true
48
- - JOB_TAG=_LOCALE
49
- - CACHE_NAME="27_slow_nnet_LOCALE"
50
- - USE_CACHE=true
39
+ - JOB="2.7_LOCALE" TEST_ARGS="--only-slow --skip-network" LOCALE_OVERRIDE="zh_CN.UTF-8"
51
40
addons :
52
41
apt :
53
42
packages :
54
43
- language-pack-zh-hans
55
- - python : 2.7
44
+ - os : linux
56
45
env :
57
- - PYTHON_VERSION=2.7
58
- - JOB_NAME : " 27_nslow"
59
- - TEST_ARGS="--skip-slow"
60
- - FULL_DEPS=true
61
- - CLIPBOARD_GUI=gtk2
62
- - LINT=true
63
- - CACHE_NAME="27_nslow"
64
- - USE_CACHE=true
46
+ - JOB="2.7" TEST_ARGS="--skip-slow" LINT=true
65
47
addons :
66
48
apt :
67
49
packages :
68
50
- python-gtk2
69
- - python : 3.5
51
+ - os : linux
70
52
env :
71
- - PYTHON_VERSION=3.5
72
- - JOB_NAME : " 35_nslow"
73
- - TEST_ARGS="--skip-slow --skip-network"
74
- - FULL_DEPS=true
75
- - CLIPBOARD=xsel
76
- - COVERAGE=true
77
- - CACHE_NAME="35_nslow"
78
- # - USE_CACHE=true # Don't use cache for 35_nslow
53
+ - JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
79
54
addons :
80
55
apt :
81
56
packages :
82
57
- xsel
83
- - python : 3.6
58
+ - os : linux
84
59
env :
85
- - PYTHON_VERSION=3.6
86
- - JOB_NAME : " 36"
87
- - TEST_ARGS="--skip-slow --skip-network"
88
- - PANDAS_TESTING_MODE="deprecate"
89
- addons :
90
- apt :
91
- packages :
92
- - libatlas-base-dev
93
- - gfortran
94
- # In allow_failures
95
- - python : 2.7
60
+ - JOB="3.6" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" CONDA_FORGE=true
61
+ # In allow_failures
62
+ - os : linux
96
63
env :
97
- - PYTHON_VERSION=2.7
98
- - JOB_NAME : " 27_slow"
99
- - JOB_TAG=_SLOW
100
- - TEST_ARGS="--only-slow --skip-network"
101
- - FULL_DEPS=true
102
- - CACHE_NAME="27_slow"
103
- - USE_CACHE=true
104
- # In allow_failures
105
- - python : 2.7
64
+ - JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
65
+ # In allow_failures
66
+ - os : linux
106
67
env :
107
- - PYTHON_VERSION=2.7
108
- - JOB_NAME : " 27_build_test_conda"
109
- - JOB_TAG=_BUILD_TEST
110
- - TEST_ARGS="--skip-slow"
111
- - FULL_DEPS=true
112
- - BUILD_TEST=true
113
- - CACHE_NAME="27_build_test_conda"
114
- - USE_CACHE=true
115
- # In allow_failures
116
- - python : 3.5
68
+ - JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
69
+ # In allow_failures
70
+ - os : linux
117
71
env :
118
- - PYTHON_VERSION=3.5
119
- - JOB_NAME : " 35_numpy_dev"
120
- - JOB_TAG=_NUMPY_DEV
121
- - TEST_ARGS="--skip-slow --skip-network"
122
- - PANDAS_TESTING_MODE="deprecate"
123
- - CACHE_NAME="35_numpy_dev"
124
- - USE_CACHE=true
125
- addons :
126
- apt :
127
- packages :
128
- - libatlas-base-dev
129
- - gfortran
130
- # In allow_failures
131
- - python : 3.5
72
+ - JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
73
+ # In allow_failures
74
+ - os : linux
132
75
env :
133
- - PYTHON_VERSION=3.5
134
- - JOB_NAME : " doc_build"
135
- - FULL_DEPS=true
136
- - DOC_BUILD=true
137
- - JOB_TAG=_DOC_BUILD
138
- - CACHE_NAME="doc_build"
139
- - USE_CACHE=true
76
+ - JOB="3.5_DOC" DOC=true
140
77
allow_failures :
141
- - python : 2.7
78
+ - os : linux
142
79
env :
143
- - PYTHON_VERSION=2.7
144
- - JOB_NAME : " 27_slow"
145
- - JOB_TAG=_SLOW
146
- - TEST_ARGS="--only-slow --skip-network"
147
- - FULL_DEPS=true
148
- - CACHE_NAME="27_slow"
149
- - USE_CACHE=true
150
- - python : 2.7
80
+ - JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
81
+ - os : linux
151
82
env :
152
- - PYTHON_VERSION=2.7
153
- - JOB_NAME : " 27_build_test_conda"
154
- - JOB_TAG=_BUILD_TEST
155
- - TEST_ARGS="--skip-slow"
156
- - FULL_DEPS=true
157
- - BUILD_TEST=true
158
- - CACHE_NAME="27_build_test_conda"
159
- - USE_CACHE=true
160
- - python : 3.5
83
+ - JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
84
+ - os : linux
161
85
env :
162
- - PYTHON_VERSION=3.5
163
- - JOB_NAME : " 35_numpy_dev"
164
- - JOB_TAG=_NUMPY_DEV
165
- - TEST_ARGS="--skip-slow --skip-network"
166
- - PANDAS_TESTING_MODE="deprecate"
167
- - CACHE_NAME="35_numpy_dev"
168
- - USE_CACHE=true
169
- addons :
170
- apt :
171
- packages :
172
- - libatlas-base-dev
173
- - gfortran
174
- - python : 3.5
86
+ - JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
87
+ - os : linux
175
88
env :
176
- - PYTHON_VERSION=3.5
177
- - JOB_NAME : " doc_build"
178
- - FULL_DEPS=true
179
- - DOC_BUILD=true
180
- - JOB_TAG=_DOC_BUILD
181
- - CACHE_NAME="doc_build"
182
- - USE_CACHE=true
89
+ - JOB="3.5_DOC" DOC=true
183
90
184
91
before_install :
185
92
- echo "before_install"
186
93
- source ci/travis_process_gbq_encryption.sh
187
- - echo $VIRTUAL_ENV
188
94
- export PATH="$HOME/miniconda3/bin:$PATH"
189
95
- df -h
190
- - date
191
96
- pwd
192
97
- uname -a
193
- - python -V
194
98
- git --version
195
99
- git tag
196
100
- ci/before_install_travis.sh
197
- - export DISPLAY=:99.0
101
+ - export DISPLAY=" :99.0"
198
102
199
103
install :
200
104
- echo "install start"
201
- - ci/check_cache.sh
202
105
- ci/prep_cython_cache.sh
203
106
- ci/install_travis.sh
204
107
- ci/submit_cython_cache.sh
205
108
- echo "install done"
206
109
207
110
before_script :
208
- - source activate pandas && pip install codecov
209
111
- ci/install_db_travis.sh
210
112
211
113
script :
@@ -217,12 +119,15 @@ script:
217
119
- echo "script done"
218
120
219
121
after_success :
220
- - source activate pandas && codecov
122
+ - ci/upload_coverage.sh
221
123
222
124
after_script :
223
125
- echo "after_script start"
224
- - ci/install_test.sh
225
126
- source activate pandas && python -c "import pandas; pandas.show_versions();"
226
- - ci/print_skipped.py /tmp/single.xml
227
- - ci/print_skipped.py /tmp/multiple.xml
127
+ - if [ -e /tmp/single.xml ]; then
128
+ ci/print_skipped.py /tmp/single.xml;
129
+ fi
130
+ - if [ -e /tmp/multiple.xml ]; then
131
+ ci/print_skipped.py /tmp/multiple.xml;
132
+ fi
228
133
- echo "after_script done"
0 commit comments