Skip to content

Commit 4e19d2e

Browse files
committed
CI: slightly more robust xfvb starting
1 parent 96a5274 commit 4e19d2e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ matrix:
5151
- python-gtk2
5252
- dist: trusty
5353
env:
54-
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
54+
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true CLIPBOARD=true
5555
addons:
5656
apt:
5757
packages:
@@ -74,7 +74,7 @@ matrix:
7474
# In allow_failures
7575
- dist: trusty
7676
env:
77-
- JOB="3.6_DOC" DOC=true
77+
- JOB="3.6_DOC" DOC=true CLIPBOARD=true
7878
addons:
7979
apt:
8080
packages:
@@ -91,7 +91,7 @@ matrix:
9191
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
9292
- dist: trusty
9393
env:
94-
- JOB="3.6_DOC" DOC=true
94+
- JOB="3.6_DOC" DOC=true CLIPBOARD=true
9595

9696
before_install:
9797
- echo "before_install"
@@ -102,8 +102,6 @@ before_install:
102102
- uname -a
103103
- git --version
104104
- git tag
105-
- ci/before_install_travis.sh
106-
- export DISPLAY=":99.0"
107105

108106
install:
109107
- echo "install start"
@@ -114,6 +112,7 @@ install:
114112

115113
before_script:
116114
- ci/install_db_travis.sh
115+
- ci/before_script_travis.sh
117116

118117
script:
119118
- echo "script start"

ci/before_install_travis.sh renamed to ci/before_script_travis.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
echo "inside $0"
44

5-
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
5+
if [ "$CLIPBOARD" ] && [ "${TRAVIS_OS_NAME}" == "linux" ]; then
6+
export DISPLAY=":99.0"
67
sh -e /etc/init.d/xvfb start
8+
sleep 3
79
fi
810

911
# Never fail because bad things happened here.

ci/script_single.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
echo "[script_single]"
44

55
source activate pandas
6+
export DISPLAY=":99.0"
67

78
if [ -n "$LOCALE_OVERRIDE" ]; then
89
export LC_ALL="$LOCALE_OVERRIDE";

0 commit comments

Comments
 (0)