forked from sentinel-hub/eo-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 1.09 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
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
install:
- pip install -r requirements-dev.txt --upgrade
- python install_all.py
- pip install pandas==0.23.4 # This is temporal solution
script:
- 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
- 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
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest --ignore io/eolearn/tests; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest ; fi'