forked from sentinel-hub/eo-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.83 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
57
58
59
60
dist: xenial
language: python
notifications:
email: false
python:
- "3.5"
- "3.6"
- "3.7"
before_install:
- sudo add-apt-repository -y ppa:jonathonf/backports
- sudo apt-get -qq update
- sudo apt-get install -y libgdal-dev
- sudo apt-get install graphviz
- sudo apt-get install proj-bin
- sudo apt-get install gcc
- sudo apt-get install libproj-dev
install:
- pip install -r requirements-dev.txt --upgrade
- if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
python install_all.py -e;
else
python install_all.py;
fi
- pip install pandas==0.23.4 # This is temporal solution
script:
- if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
pylint core/eolearn/core/*.py &&
pylint coregistration/eolearn/coregistration/*.py &&
pylint features/eolearn/features/*.py &&
pylint geometry/eolearn/geometry/*.py &&
pylint io/eolearn/io/*.py &&
pylint mask/eolearn/mask/*.py &&
pylint ml_tools/eolearn/ml_tools/*.py &&
pylint visualization/eolearn/visualization/*.py;
fi
- radon cc core/eolearn/core/*.py -a -nb
- radon cc coregistration/eolearn/coregistration/*.py -a -nb
- radon cc features/eolearn/features/*.py -a -nb
- radon cc geometry/eolearn/geometry/*.py -a -nb
- radon cc io/eolearn/io/*.py -a -nb
- radon cc mask/eolearn/mask/*.py -a -nb
- radon cc ml_tools/eolearn/ml_tools/*.py -a -nb
- radon cc visualization/eolearn/visualization/*.py -a -nb
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest --ignore io/eolearn/tests; fi'
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
pytest -c=.coveragerc;
else
pytest;
fi
fi
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest --nbval-lax examples/visualization/EOPatchVisualization.ipynb ; fi'
after_success:
- if [ $TRAVIS_PYTHON_VERSION == '3.6' ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then codecov; fi