File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments