forked from sentinel-hub/eo-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (60 loc) · 1.95 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
61
62
63
64
65
66
dist: bionic
language: python
notifications:
email: false
python:
- "3.6"
- "3.7"
- "3.8"
before_install:
- 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
script:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
sentinelhub.config --instance_id $INSTANCE_ID &&
sentinelhub.config --sh_client_secret $SH_CLIENT_SECRET &&
sentinelhub.config --sh_client_id $SH_CLIENT_ID ;
fi
- 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
if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
pytest -c=.coveragerc;
else
pytest;
fi;
else
pytest \
--ignore io/eolearn/tests/test_io.py \
--ignore io/eolearn/tests/test_processing_io.py ;
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