File tree Expand file tree Collapse file tree 2 files changed +27
-24
lines changed Expand file tree Collapse file tree 2 files changed +27
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - " 3.9"
4
+ install :
5
+ # We do this conditionally because it saves us some downloading if the
6
+ # version is the same.
7
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
8
+ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
9
+ else
10
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
11
+ fi
12
+ - bash miniconda.sh -b -p $HOME/miniconda
13
+ - source "$HOME/miniconda/etc/profile.d/conda.sh"
14
+ - hash -r
15
+ - conda config --set always_yes yes --set changeps1 no
16
+ - conda update -q conda
17
+ # Useful for debugging any issues with conda
18
+ - conda info -a
19
+
20
+ # install dependencies
21
+ - conda create -q --name test-environment python=$TRAVIS_PYTHON_VERSION --file requirements.txt
22
+ - conda activate test-environment
23
+ - python -m pip install .
24
+
25
+ script :
26
+ # Your test script goes here
27
+ - pytest -v --color=yes --cov=cpr tests
You can’t perform that action at this time.
0 commit comments