File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments