forked from bashtage/ng-numpy-randomstate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Travis script that uses miniconda in place of the system installed python
# versions. Allows substantial flexability for choosing versions of
# required packages and is simpler to use to test up-to-date scientific Python
# stack
group: edge
dist: trusty
sudo: required
language: python
services:
- docker
before_install:
- docker pull ubuntu:16.04
matrix:
fast_finish: true
include:
- env:
- PYTHON=2.7
- NUMPY=1.9
- CYTHON=0.22
- env:
- PYTHON=3.4
- NUMPY=1.10
- CYTHON=0.23
- env:
- PYTHON=3.5
before_install:
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=$HOME/miniconda/bin:$PATH
- export PATH=$HOME/miniconda2/bin:$PATH
- conda config --set always_yes yes
- conda update --all --quiet
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
- PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
# Install packages
install:
- conda create -n randomstate-test ${PKGS} nose pip setuptools --quiet
- source activate randomstate-test
- pip install tempita
- python setup.py install
- export BUILD_DIR=$PWD
- cd $HOME
script:
- nosetests randomstate
- cd $BUILD_DIR/randomstate
- if [ ${PYTHON} = "3.5" ]; then python performance.py; fi