forked from paris-saclay-cds/ramp-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 922 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
language: python
dist: trusty
cache: pip
branches:
only:
- master
env:
- PYTHON_VERSION=2.7 IPYTHON_KERNEL=python2
- PYTHON_VERSION=3.5 IPYTHON_KERNEL=python3
- PYTHON_VERSION=3.6 IPYTHON_KERNEL=python3
before_install:
- wget -q http://repo.continuum.io/miniconda/Miniconda-3.6.0-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes --quiet conda
install:
- conda create -n testenv --yes pip python=$PYTHON_VERSION
- source activate testenv
- pip install -r testing-requirements.txt
# Adding tensorflow here due to failures in Py2.7 build fails with MNIST
- pip install tensorflow
- pip install .
script:
- flake8 rampwf --ignore=F401,E211,E265,W503
- pytest -s -v --cov=rampwf rampwf
after_success:
- codecov
notifications:
email: true