-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 939 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: generic
os:
- linux
- osx
env:
- PYTHON='2.7' PKG='pip'
- PYTHON='2.7' PKG='conda'
- PYTHON='3.5' PKG='pip'
- PYTHON='3.5' PKG='conda'
- PYTHON='3.6' PKG='pip'
- PYTHON='3.6' PKG='conda'
- PYTHON='3.7' PKG='pip'
- PYTHON='3.7' PKG='conda'
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export OS="Linux"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export OS="MacOSX"; fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda create --name test-env python=$PYTHON pytest --yes
- source activate test-env
install:
- |
if [ "$PKG" == "pip" ]; then
pip install orca
pip list
fi
- |
if [ "$PKG" == "conda" ]; then
conda install orca --channel conda-forge --yes
conda list
fi
script:
- pytest tests/*.py