Skip to content

Commit 686e9e0

Browse files
committed
CI: make generic 3.5 builds
CI: rename BUILD_DOC -> DOC
1 parent 80280ec commit 686e9e0

7 files changed

+29
-35
lines changed

.travis.yml

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
sudo: false
22
language: python
3+
# Default Python version is usually 2.7
4+
python: 3.5
35

46
# To turn off cached cython files and compiler cache
57
# set NOCACHE-true
68
# To delete caches go to https://travis-ci.org/OWNER/REPOSITORY/caches or run
79
# travis cache --delete inside the project directory from the travis command line client
810
# The cash directories will be deleted if anything in ci/ changes in a commit
911
cache:
12+
ccache: true
1013
directories:
1114
- $HOME/.cache # cython cache
1215
- $HOME/.ccache # compiler cache
@@ -23,69 +26,67 @@ git:
2326

2427
matrix:
2528
fast_finish: true
29+
exclude:
30+
# Exclude the default Python 3.5 build
31+
- python: 3.5
2632
include:
27-
- language: objective-c
28-
os: osx
29-
cache:
30-
ccache: true
31-
directories:
32-
- $HOME/.cache # cython cache
33-
- $HOME/.ccache # compiler cache
33+
- os: osx
34+
language: generic
3435
env:
35-
- JOB="3.5_OSX" TEST_ARGS="--skip-slow --skip-network" TRAVIS_PYTHON_VERSION=3.5
36-
- python: 2.7
36+
- JOB="3.5_OSX" TEST_ARGS="--skip-slow --skip-network"
37+
- os: linux
3738
env:
3839
- JOB="2.7_LOCALE" TEST_ARGS="--only-slow --skip-network" LOCALE_OVERRIDE="zh_CN.UTF-8"
3940
addons:
4041
apt:
4142
packages:
4243
- language-pack-zh-hans
43-
- python: 2.7
44+
- os: linux
4445
env:
4546
- JOB="2.7" TEST_ARGS="--skip-slow" LINT=true
4647
addons:
4748
apt:
4849
packages:
4950
- python-gtk2
50-
- python: 3.5
51+
- os: linux
5152
env:
5253
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
5354
addons:
5455
apt:
5556
packages:
5657
- xsel
57-
- python: 3.6
58+
- os: linux
5859
env:
5960
- JOB="3.6" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" CONDA_FORGE=true
6061
# In allow_failures
61-
- python: 2.7
62+
- os: linux
6263
env:
6364
- JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
6465
# In allow_failures
65-
- python: 2.7
66+
- os: linux
6667
env:
6768
- JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
6869
# In allow_failures
69-
- python: 3.6
70+
- os: linux
7071
env:
7172
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
7273
# In allow_failures
73-
- python: 3.5
74+
- os: linux
7475
env:
75-
- JOB="3.5_DOC_BUILD" DOC_BUILD=true
76+
- JOB="3.5_DOC" DOC=true
7677
allow_failures:
77-
- python: 2.7
78+
- os: linux
7879
env:
7980
- JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
80-
- python: 2.7
81+
- os: linux
8182
env:
8283
- JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
83-
- python: 3.6
84+
- os: linux
8485
env:
8586
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
86-
- python: 3.5
87+
- os: linux
8788
env:
88-
- JOB="3.5_DOC_BUILD" DOC_BUILD=true
89+
- JOB="3.5_DOC" DOC=true
8990

9091
before_install:
9192
- echo "before_install"

ci/build_docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ "$?" != "0" ]; then
1717
fi
1818

1919

20-
if [ x"$DOC_BUILD" != x"" ]; then
20+
if [ "$DOC" ]; then
2121

2222
echo "Will build docs"
2323

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
python=3.5*
22
python-dateutil
33
pytz
4-
nomkl
54
numpy
65
cython
File renamed without changes.
File renamed without changes.

ci/script_multi.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ echo "[script multi]"
44

55
source activate pandas
66

7-
# don't run the tests for the doc build
8-
if [ x"$DOC_BUILD" != x"" ]; then
9-
exit 0
10-
fi
11-
127
if [ -n "$LOCALE_OVERRIDE" ]; then
138
export LC_ALL="$LOCALE_OVERRIDE";
149
echo "Setting LC_ALL to $LOCALE_OVERRIDE"
@@ -26,6 +21,8 @@ echo PYTHONHASHSEED=$PYTHONHASHSEED
2621
if [ "$BUILD_TEST" ]; then
2722
cd /tmp
2823
python -c "import pandas; pandas.test(['-n 2'])"
24+
elif [ "$DOC" ]; then
25+
echo "We are not running pytest as this is a doc-build"
2926
elif [ "$COVERAGE" ]; then
3027
echo pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
3128
pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas

ci/script_single.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ echo "[script_single]"
44

55
source activate pandas
66

7-
# don't run the tests for the doc build
8-
if [ x"$DOC_BUILD" != x"" ]; then
9-
exit 0
10-
fi
11-
127
if [ -n "$LOCALE_OVERRIDE" ]; then
138
export LC_ALL="$LOCALE_OVERRIDE";
149
echo "Setting LC_ALL to $LOCALE_OVERRIDE"
@@ -18,7 +13,9 @@ if [ -n "$LOCALE_OVERRIDE" ]; then
1813
fi
1914

2015
if [ "$BUILD_TEST" ]; then
21-
echo "We are not running pytest as this is simply a build test."
16+
echo "We are not running pytest as this is a build test."
17+
elif [ "$DOC" ]; then
18+
echo "We are not running pytest as this is a doc-build"
2219
elif [ "$COVERAGE" ]; then
2320
echo pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov-single.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas
2421
pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov-single.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas

0 commit comments

Comments
 (0)