forked from dragnet-org/dragnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (29 loc) · 790 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
language: generic
sudo: required
os:
- linux
- osx
env:
matrix:
- PYTHON=2.7
- PYTHON=3.5
- PYTHON=3.6
- PYTHON=3.7
install:
# use miniconda until travis supports python on osx
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/miniconda.sh;
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
fi
- bash ~/miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda create --yes -n python-env python=$PYTHON
- source activate python-env
- pip install -r requirements.txt
- pip list
- pip install .
after_install:
- pip list
script:
- pytest