-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
35 lines (29 loc) · 853 Bytes
/
.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
language: python
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
python:
- 2.7
- 3.5
- 3.6
env:
global:
- TEST_DIR=/tmp/nfft-test
- CONDA_DEPS="numpy scipy pytest"
- PIP_DEPS="coverage codecov pytest-cov"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- conda config --set always_yes yes
- conda update -q conda
- conda info -a
install:
- conda create -q -n test-env python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
- source activate test-env
- pip install $PIP_DEPS
- python setup.py install
script:
- mkdir -p $TEST_DIR
- cd $TEST_DIR && py.test --pyargs nfft --cov=nfft