.travis.yml: user install on osx only, adding ~/Library/Python/2.7/bin to PATH
authorPaul Brossier <piem@piem.org>
Sat, 30 Apr 2016 12:58:59 +0000 (14:58 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 30 Apr 2016 12:58:59 +0000 (14:58 +0200)
.travis.yml

index 9331f05..b83a199 100644 (file)
@@ -63,14 +63,15 @@ addons:
     - sox
 
 install:
-  - travis_retry pip install --user nose2
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make travis_retry pip install nose2; fi
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then   make travis_retry pip install --user nose2; fi
 
 script:
   - echo make create_test_sounds disabled for now
   - make build
   - make build_python
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make test_python; fi
-  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make test_python_osx; fi
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="$HOME/Library/Python/2.7/bin/:$PATH" make test_python_osx; fi
   - make clean_python
   - make clean
   - make distcheck