Skip to content

Commit 63a8a1a

Browse files
committed
Simplify travis setup
1 parent 07dd0da commit 63a8a1a

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

.travis.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,15 @@ python:
44
- "3.7"
55

66
dist: xenial
7-
sudo: true
8-
9-
before_install:
10-
- sudo apt-get update
117

128
install:
13-
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
14-
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
15-
else
16-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
17-
fi
9+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
1810
- bash miniconda.sh -b -p $HOME/miniconda
1911
- export PATH="$HOME/miniconda/bin:$PATH"
20-
- hash -r
2112
- conda config --set always_yes yes --set changeps1 no
22-
- conda update -q conda
23-
# Useful for debugging any issues with conda
24-
- conda info -a
25-
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py
13+
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
2614
- source activate test-environment
27-
- pip install pytest-cov pytest-xdist coverage==4.4
28-
- pip install --user codecov
15+
- conda install pytest pytest-cov pytest-xdist coverage
2916
- python setup.py install
3017
script:
3118
- PYTHONPATH=$PWD:$PYTHONPATH py.test --cov timesynth

0 commit comments

Comments
 (0)