forked from yingqiuz/abagen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.17 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: python
cache: pip
sudo: true
notifications:
email: change
python:
- 3.5
- 3.6
env:
- LINTING=1
- PARQUET=0
- PARQUET=1 COVERAGE=1
- DOCTEST=1
before_install:
- python -m pip install --upgrade pip
- if [ "${LINTING}" == "1" ]; then
pip install flake8;
fi
- if [ "${COVERAGE}" == "1" ]; then
pip install coverage coveralls codecov pytest pytest-cov;
fi
- if [ "${PARQUET}" == "1" ]; then
sudo apt-get install libsnappy-dev;
fi
install:
- if [ "${PARQUET}" == "1" ]; then
pip install -e .[io];
elif [ "${DOCTEST}" == "1" ]; then
pip install -e .[doc];
else
pip install -e .;
fi
script:
- |
if [ "${LINTING}" == "1" ]; then
flake8 abagen;
elif [ "${DOCTEST}" == "1" ]; then
cd docs;
make html;
make doctest;
else
if [ "${COVERAGE}" == "1" ]; then
TEST_ARGS="--cov-report term-missing --cov=abagen";
fi
py.test -s ${TEST_ARGS} abagen;
fi
after_success:
- if [ "${COVERAGE}" == "1" ]; then
coveralls; codecov;
fi