Skip to content

Commit 361edd5

Browse files
committed
add .travis.yml
1 parent 86fc323 commit 361edd5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: python
2+
dist: focal
3+
4+
before_install:
5+
# Install conda
6+
- export MINICONDA=${HOME}/miniconda
7+
- export PATH=${MINICONDA}/bin:${PATH}
8+
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
9+
- bash miniconda.sh -b -f -p ${MINICONDA}
10+
- conda config --set always_yes yes
11+
- conda config --add channels defaults
12+
- conda config --add channels conda-forge
13+
install:
14+
- conda install python=$TRAVIS_PYTHON_VERSION, isa-l, tox
15+
16+
python: 3.5 # Use the oldest supported version of python as default.
17+
script:
18+
- tox -e $TOX_ENV
19+
matrix:
20+
include:
21+
# TEST DOCS AND LINTING
22+
# Use default python3 version here.
23+
- env: TOX_ENV=docs
24+
- env: TOX_ENV=lint
25+
# UNIT TESTS
26+
# On most recent versions of python.
27+
- env: TOX_ENV=py35
28+
after_success:
29+
- pip install codecov
30+
- codecov -v # -v to make sure coverage upload works.
31+
- python: 3.6
32+
env: TOX_ENV=py36
33+
- python: 3.7
34+
env: TOX_ENV=py37
35+
- python: 3.8
36+
env: TOX_ENV=py38

0 commit comments

Comments
 (0)