Skip to content

Commit 481551e

Browse files
authored
Create .travis.yml
1 parent 94a56e2 commit 481551e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: python
2+
python:
3+
- "3.6"
4+
5+
stages:
6+
- test
7+
8+
install:
9+
10+
- sudo apt-get update
11+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
12+
- bash miniconda.sh -b -p $HOME/miniconda
13+
- export PATH="$HOME/miniconda/bin:$PATH"
14+
- hash -r
15+
- conda config --set always_yes yes --set changeps1 no
16+
- conda update -q conda
17+
18+
# Useful for debugging any issues with conda
19+
- conda info -a
20+
- conda create -q -n test-environment -c pytorch python=$TRAVIS_PYTHON_VERSION numpy mock pytorch-cpu
21+
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install enum34; fi
22+
- source activate test-environment
23+
24+
# Dependencies
25+
- pip install -r requirements.txt
26+
27+
# Package
28+
- python setup.py install
29+
- pip install --upgrade pytest #codecov pytest-cov
30+
31+
script:
32+
- python -m pytest -s tests
33+

0 commit comments

Comments
 (0)