Skip to content

Commit f859c8d

Browse files
committed
Updated with conda based installation.
1 parent da9321d commit f859c8d

File tree

1 file changed

+26
-36
lines changed

1 file changed

+26
-36
lines changed

.travis.yml

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,37 @@
11
language: python
22
python:
3-
- 2.7
4-
- 3.3
3+
# We don't actually use the Travis Python, but this keeps it organized.
4+
- "2.7"
5+
- "3.3"
6+
- "3.4"
57
notifications:
6-
email: false
8+
email: false
79

8-
before_install:
9-
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
10-
- chmod +x miniconda.sh
11-
- ./miniconda.sh -b
12-
- export PATH=/home/travis/miniconda/bin:$PATH
13-
- conda update --yes conda
14-
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
15-
- sudo rm -rf /dev/shm
16-
- sudo ln -s /run/shm /dev/shm
17-
#- sudo apt-get update -qq
18-
#- sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran
19-
#- sudo apt-get install -qq python-numpy python-scipy python-matplotlib
20-
# - virtualenv --system-site-packages ~/virtualenv/this
21-
# - source ~/virtualenv/this/bin/activate
2210
install:
23-
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose
24-
# Coverage packages are on my binstar channel
11+
- sudo apt-get update
12+
# We do this conditionally because it saves us some downloading if the
13+
# version is the same.
14+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
15+
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
16+
else
17+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
18+
fi
19+
- bash miniconda.sh -b -p $HOME/miniconda
20+
- export PATH="$HOME/miniconda/bin:$PATH"
21+
- hash -r
22+
- conda config --set always_yes yes --set changeps1 no
23+
- conda update -q conda
24+
# Useful for debugging any issues with conda
25+
- conda info -a
26+
27+
# Replace dep1 dep2 ... with your dependencies
28+
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose python-coveralls
29+
- source activate test-environment
2530
- conda install --yes -c dan_blanchard python-coveralls nose-cov
2631
- python setup.py install
27-
# - pip install -r requirements.txt
28-
# - pip install nose
29-
# - pip install coverage
30-
# - pip install coveralls
31-
# - python setup.py install
3232
script:
33-
#- nosetests -a '!slow' --with-coverage --cover-package=commpy
34-
- nosetests -a '!slow' --with-cov --cov commpy --cov-config .coveragerc --logging-level=INFO
35-
33+
# Your test script goes here
34+
- nosetests -a '!slow' --with-coverage --cover-package=commpy --cov-config .coveragerc --logging-level=INFO
3635
# Calculate coverage
3736
after_success:
3837
- coveralls --config_file .coveragerc
39-
40-
#language: python
41-
#python:
42-
# - "2.7"
43-
# - "nightly"
44-
# command to install dependencies
45-
#install: "pip install -r requirements.txt"
46-
# command to run tests
47-
#script: nosetests

0 commit comments

Comments
 (0)