Skip to content

Commit b982feb

Browse files
committed
Fix Travis
There were two causes of breakage: - using pip 6.0.7, which doesn't properly install things in the right order - requirements-install.sh not properly handling the case where SIX_VERSION isn't defined
1 parent 1a28d72 commit b982feb

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
- SIX_VERSION=1.9 USE_OPTIONAL=true
2020

2121
install:
22-
- bash requirements-install.sh
22+
- ./requirements-install.sh
2323

2424
script:
2525
- if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then py.test; fi

requirements-install.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
#!/bin/bash -e
1+
#!/bin/bash -ex
22

3-
if [[ $USE_OPTIONAL != "true" && $USE_OPTIONAL != "false" ]]; then
4-
echo "fatal: \$USE_OPTIONAL not set to true or false. Exiting."
5-
exit 1
6-
fi
3+
pip install pip==6.1.0
74

85
pip install -U -r requirements-test.txt
96

107
if [[ $USE_OPTIONAL == "true" ]]; then
118
pip install -U -r requirements-optional.txt
129
fi
1310

14-
if [[ $SIX_VERSION != "false" ]]; then
11+
if [[ $SIX_VERSION ]]; then
1512
pip install six==$SIX_VERSION
1613
fi
1714

0 commit comments

Comments
 (0)