-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 913 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
language: generic
dist: trusty
sudo: false
env:
matrix:
- PYTHON_VERSION=3.6
global:
- MINCONDA_PYTHON_VERSION=3;
- MINCONDA_VERSION="latest"
- MINCONDA_LINUX="Linux-x86_64"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINCONDA_OS=$MINCONDA_LINUX;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
fi
- wget "http://repo.continuum.io/miniconda/Miniconda$MINCONDA_PYTHON_VERSION-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes
- conda update -q conda
- conda create -q -n test-environment python=$PYTHON_VERSION pip numpy pytest
- source activate test-environment
- conda install -q pytorch pytest scipy
- conda list
- pwd
- ls -l
- pip install -qr requirements.txt
script:
- pytest