Skip to content

Commit 33dc36c

Browse files
committed
Uses Travis
1 parent 7587ea3 commit 33dc36c

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

.github/workflows/pytest.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)