Skip to content

Commit

Permalink
Try to tackle Travis CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jul 2, 2017
1 parent 8a23b9d commit aeb0d42
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@ python:
- "3.4"
- "3.5"
- "3.6"
before_install:
- sudo apt-get update -qq
- sudo apt-get install --yes bzr bzrtools git mercurial
install:
- pip install pip-accel
- pip-accel install coveralls
- pip-accel install --requirement=requirements-checks.txt
- pip-accel install --requirement=requirements-tests.txt
- LC_ALL=C pip-accel install .
- scripts/install-on-travis.sh
script:
- make check
- make test
Expand Down
25 changes: 25 additions & 0 deletions scripts/install-on-travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash -e

# Make sure apt-get's package lists are up-to-date.
sudo apt-get update -qq

# Make sure git is installed.
sudo apt-get install --yes git

# Install up-to-date versions of Bazaar and Mercurial
# (using Python packaging instead of Debian packaging).
if python -c 'import sys; sys.exit(1 if sys.version_info[0] == 2 else 0)'; then
sudo apt-get install --yes python-pip
sudo pip install --upgrade bzr mercurial
fi

# Install the required Python packages.
pip install pip-accel
pip-accel install coveralls
pip-accel install --requirement=requirements.txt
pip-accel install --requirement=requirements-checks.txt
pip-accel install --requirement=requirements-tests.txt

# Install the project itself, making sure that potential character encoding
# and/or decoding errors in the setup script are caught as soon as possible.
LC_ALL=C pip-accel install .

0 comments on commit aeb0d42

Please sign in to comment.