summaryrefslogtreecommitdiff
path: root/.travis.yml
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 /.travis.yml
parent9cd868a00cc488478ac4f07ee0b5452a38cb3cc0 (diff)
downloadpython-numpy-05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc.tar.gz
python-numpy-05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc.tar.bz2
python-numpy-05010d652d1e2abfa13b4c2c9fa8f5eb48acf4bc.zip
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 '.travis.yml')
-rw-r--r--.travis.yml29
1 files changed, 28 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 6d207551c..d7874a1fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,21 @@
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
+
+# Run jobs on container-based infrastructure, can be overridden per job
+sudo: false
+
+# Travis whitelists the installable packages, additions can be requested
+# https://github.com/travis-ci/apt-package-whitelist
+addons:
+ apt:
+ packages: &common_packages
+ - gfortran
+ - libatlas-dev
+ - libatlas-base-dev
+ # Speedup builds, particularly when USE_CHROOT=1
+ - eatmydata
+
python:
- 2.6
- 2.7
@@ -11,8 +26,21 @@ matrix:
include:
- python: 3.3
env: USE_CHROOT=1 ARCH=i386 DIST=trusty PYTHON=3.4
+ sudo: true
+ addons:
+ apt:
+ packages:
+ - *common_packages
+ - debootstrap
- python: 3.2
env: USE_DEBUG=1
+ addons:
+ apt:
+ packages:
+ - *common_packages
+ - python3-dbg
+ - python3-dev
+ - python3-nose
- python: 2.7
env: NPY_SEPARATE_COMPILATION=0 PYTHON_OO=1
- python: 3.4
@@ -38,7 +66,6 @@ before_install:
- pip install --upgrade pip setuptools
# Speed up install by not compiling Cython
- pip install --install-option="--no-cython-compile" Cython
- - sudo apt-get install -qq libatlas-dev libatlas-base-dev gfortran
- popd
script: