forked from Nance-Lab/diff_classifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 783 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
language: python
sudo: false
env:
global:
- PIP_DEPS="pytest coveralls pytest-cov flake8"
python:
- '3.6'
#script:
#- cd $HOME/diff_classifier
#- python tests.py
install:
- pip install -U tox-travis coverage coveralls
- wget https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
- unzip fiji-linux64.zip
- travis_retry pip install $PIP_DEPS
- travis_retry pip install -r requirements.txt
- travis_retry pip install -e .
before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- py.test --pyargs diff_classifier --cov-report term-missing --cov=diff_classifier
#- tox
- coverage report
after_success:
- coveralls
after_success:
- ls -a
- coveralls