Skip to content

Commit ec674a9

Browse files
authored
Fix Travis (html5lib#319)
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 ec674a9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy