Skip to content

Commit d361e3f

Browse files
committed
add before install script
1 parent 6fe6020 commit d361e3f

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.travis.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
language: python
22
os:
33
- linux
4-
- osx
54
python:
65
- "2.7"
76
- "3.4"
87
# does not have headers provided, please ask https://launchpad.net/~pypy/+archive/ppa
98
# maintainers to fix their pypy-dev package.
109
# - "pypy"
1110
before_install:
12-
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; sudo apt-get update -q ; fi'
13-
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev; fi #gfortran'
14-
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi'
15-
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python; fi'
11+
- ./.travis/before_install.sh
1612
# command to install dependencies
1713
install:
1814
- pip install -r requirements.txt
1915
- python setup.py install
2016
# command to run tests
2117
matrix:
2218
include:
23-
- os: linux
24-
sudo: required
25-
python: 3.2
26-
env: TOXENV=py32
27-
- os: linux
28-
sudo: required
29-
python: 3.3
30-
env: TOXENV=py33
3119
- os: osx
32-
language: generic
33-
env: TOXENV=py3
20+
language: python
21+
3422
script: python test/test_load_module.py -v

.travis/before_install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
4+
5+
# Install some custom requirements on OS X
6+
# e.g. brew install pyenv-virtualenv
7+
brew update
8+
brew install python
9+
10+
11+
else
12+
# Install some custom requirements on Linux
13+
sudo apt-get update -q
14+
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev
15+
fi

0 commit comments

Comments
 (0)