Skip to content

Commit bfb66f2

Browse files
jbrockmendelNico Cernek
authored and
Nico Cernek
committed
CI: 3.8 build (pandas-dev#28730)
1 parent 864ef68 commit bfb66f2

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.travis.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ matrix:
3030
- python: 3.5
3131

3232
include:
33+
- dist: bionic
34+
# 18.04
35+
python: 3.8-dev
36+
env:
37+
- JOB="3.8-dev" PATTERN="(not slow and not network)"
38+
3339
- dist: trusty
3440
env:
3541
- JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="(not slow and not network)"
@@ -71,24 +77,27 @@ before_install:
7177
# This overrides travis and tells it to look nowhere.
7278
- export BOTO_CONFIG=/dev/null
7379

80+
7481
install:
7582
- echo "install start"
7683
- ci/prep_cython_cache.sh
7784
- ci/setup_env.sh
7885
- ci/submit_cython_cache.sh
7986
- echo "install done"
8087

88+
8189
before_script:
8290
# display server (for clipboard functionality) needs to be started here,
8391
# does not work if done in install:setup_env.sh (GH-26103)
8492
- export DISPLAY=":99.0"
8593
- echo "sh -e /etc/init.d/xvfb start"
86-
- sh -e /etc/init.d/xvfb start
94+
- if [ "$JOB" != "3.8-dev" ]; then sh -e /etc/init.d/xvfb start; fi
8795
- sleep 3
8896

8997
script:
9098
- echo "script start"
91-
- source activate pandas-dev
99+
- echo "$JOB"
100+
- if [ "$JOB" != "3.8-dev" ]; then source activate pandas-dev; fi
92101
- ci/run_tests.sh
93102

94103
after_script:

ci/build38.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash -e
2+
# Special build for python3.8 until numpy puts its own wheels up
3+
4+
sudo apt-get install build-essential gcc xvfb
5+
pip install --no-deps -U pip wheel setuptools
6+
pip install python-dateutil pytz cython pytest pytest-xdist hypothesis
7+
8+
# Possible alternative for getting numpy:
9+
# pip install --pre -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com/ numpy
10+
git clone https://github.com/numpy/numpy
11+
cd numpy
12+
python setup.py build_ext --inplace
13+
python setup.py install
14+
cd ..
15+
rm -rf numpy
16+
17+
python setup.py build_ext -inplace
18+
python -m pip install --no-build-isolation -e .
19+
20+
python -c "import sys; print(sys.version_info)"
21+
python -c "import pandas as pd"
22+
python -c "import hypothesis"
23+
24+
# TODO: Is there anything else in setup_env that we really want to do?
25+
# ci/setup_env.sh

ci/setup_env.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -e
22

3+
if [ "$JOB" == "3.8-dev" ]; then
4+
/bin/bash ci/build38.sh
5+
exit 0
6+
fi
37

48
# edit the locale file if needed
59
if [ -n "$LOCALE_OVERRIDE" ]; then

0 commit comments

Comments
 (0)