From d361e3f6b177506a54ce1e928a03d763ae59de98 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 7 Jul 2017 11:09:12 +0200 Subject: add before install script --- .travis.yml | 18 +++--------------- .travis/before_install.sh | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 .travis/before_install.sh diff --git a/.travis.yml b/.travis.yml index 9b9efa2..627e5cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python os: - linux - - osx python: - "2.7" - "3.4" @@ -9,10 +8,7 @@ python: # maintainers to fix their pypy-dev package. # - "pypy" before_install: - - 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; sudo apt-get update -q ; fi' - - 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev; fi #gfortran' - - 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi' - - 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python; fi' + - ./.travis/before_install.sh # command to install dependencies install: - pip install -r requirements.txt @@ -20,15 +16,7 @@ install: # command to run tests matrix: include: - - os: linux - sudo: required - python: 3.2 - env: TOXENV=py32 - - os: linux - sudo: required - python: 3.3 - env: TOXENV=py33 - os: osx - language: generic - env: TOXENV=py3 + language: python + script: python test/test_load_module.py -v diff --git a/.travis/before_install.sh b/.travis/before_install.sh new file mode 100644 index 0000000..cfa3fdc --- /dev/null +++ b/.travis/before_install.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + + # Install some custom requirements on OS X + # e.g. brew install pyenv-virtualenv + brew update + brew install python + + +else + # Install some custom requirements on Linux + sudo apt-get update -q + sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev +fi -- cgit v1.2.3