From 782e383c1086eb29ae7191e3f55c3f02f3506a9b Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Thu, 23 Mar 2017 15:20:03 +0000 Subject: [PATCH] Fix Travis build --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 92b85db1..9ac8583b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,12 @@ matrix: - os: osx script: - - pip install . - - python ./run_tests.py + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + pip install . + python ./run_tests.py + else + # linux test requires root to clean up the wheelhouse (docker runs as root) + sudo pip install . + sudo python ./run_tests.py + fi