Skip to content

Commit e759cae

Browse files
Sheppard, KevinSheppard, Kevin
authored andcommitted
TST: Working OSX travis script
1 parent 66225b8 commit e759cae

File tree

2 files changed

+57
-4
lines changed

2 files changed

+57
-4
lines changed

.travis.osx.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Travis script that uses miniconda in place of the system installed python
2+
# versions. Allows substantial flexability for choosing versions of
3+
# required packages and is simpler to use to test up-to-date scientific Python
4+
# stack
5+
sudo: false
6+
7+
language: objective-c
8+
9+
env:
10+
- PYTHON=2.7
11+
12+
before_install:
13+
- which python
14+
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
15+
- chmod +x miniconda.sh
16+
- ./miniconda.sh -b
17+
- export PATH=$HOME/miniconda/bin:$PATH
18+
- export PATH=$HOME/miniconda2/bin:$PATH
19+
- conda config --set always_yes yes
20+
- conda update --all --quiet
21+
- PKGS="python=${PYTHON}"
22+
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
23+
- PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
24+
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
25+
26+
# Install packages
27+
install:
28+
- conda create -n rng-test ${PKGS} nose pip setuptools --quiet
29+
- source activate rng-test
30+
- export BUILD_DIR=$PWD
31+
- python setup.py install
32+
33+
script:
34+
- cd $HOME
35+
- nosetests randomstate
36+
- cd $BUILD_DIR/randomstate
37+
- if [ ${PYTHON} = "2.7" ]; then python performance.py; fi

.travis.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,30 @@
44
# stack
55
sudo: false
66

7-
language: objective-c
7+
language: python
88

9-
env:
10-
- PYTHON=2.7
9+
matrix:
10+
fast_finish: true
11+
include:
12+
- python: 2.7
13+
env:
14+
- PYTHON=2.6
15+
- python: 2.7
16+
env:
17+
- PYTHON=2.7
18+
- python: 2.7
19+
env:
20+
- PYTHON=3.3
21+
- python: 2.7
22+
env:
23+
- PYTHON=3.4
24+
- python: 2.7
25+
env:
26+
- PYTHON=3.5
1127

1228
before_install:
13-
- which python
1429
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
30+
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
1531
- chmod +x miniconda.sh
1632
- ./miniconda.sh -b
1733
- export PATH=$HOME/miniconda/bin:$PATH

0 commit comments

Comments
 (0)