summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Willmer <alex@moreati.org.uk>2015-08-05 13:33:44 +0100
committerAlex Willmer <alex@moreati.org.uk>2015-08-05 13:33:44 +0100
commit05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc (patch)
tree0599d3037bf798dd5064b6ccb68d62d11f645d78 /tools
parent9cd868a00cc488478ac4f07ee0b5452a38cb3cc0 (diff)
downloadnumpy-05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc.tar.gz
BLD: Speed up up Travis jobs by running on container-based infrastructure
All jobs currently run on Travis's legacy infrastructure - which supports sudo. The newer container-based infrastructure is faster, but doesn't allow sudo. This patch - sets sudo=false for all jobs, except the chroot job - uses Travis's apt addon to install all packages - installs eatmydata for all jobs to reduce disk IO - removes the tmpfs workaround for chroot builds
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index 4b6a39c25..51b3b2c17 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -ex
-# travis boxes give you 1.5 cpus
+# Travis legacy boxes give you 1.5 CPUs, container-based boxes give you 2 CPUs
export NPY_NUM_BUILD_JOBS=2
# setup env
@@ -47,12 +47,7 @@ setup_chroot()
# CC="gcc -m32" LDSHARED="gcc -m32 -shared" LDFLAGS="-m32 -shared" linux32 python setup.py build
# when travis updates to ubuntu 14.04
DIR=$1
- # speeds up setup as we don't have eatmydata during bootstrap
- sudo mkdir -p $DIR
- sudo mount -t tmpfs -o size=4G tmpfs $DIR
set -u
- sudo apt-get update
- sudo apt-get -qq -y --force-yes install debootstrap eatmydata
sudo debootstrap --variant=buildd --include=fakeroot,build-essential --arch=$ARCH --foreign $DIST $DIR
sudo chroot $DIR ./debootstrap/debootstrap --second-stage
sudo rsync -a $TRAVIS_BUILD_DIR $DIR/
@@ -117,8 +112,6 @@ PYTHON=${PYTHON:-python}
PIP=${PIP:-pip}
if [ -n "$USE_DEBUG" ]; then
- sudo apt-get update
- sudo apt-get install -qq -y --force-yes python3-dbg python3-dev python3-nose
PYTHON=python3-dbg
fi