forked from sentinelsat/sentinelsat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.22 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
dist: focal
language: python
cache: pip
jobs:
include:
- python: '2.7'
- python: '3.5'
- python: '3.6'
- python: '3.7'
- python: '3.8'
- python: '3.9'
- name: "macOS 10.15"
os: osx
osx_image: xcode11.6
language: shell
- name: "Windows"
os: windows
language: shell
before_install:
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
- source conda4travis.sh
- conda create -n sentinelsat python=3.8 geopandas pyyaml -y
- conda activate sentinelsat
branches:
only:
- master
before_install:
- python -m pip install -U pip
install:
- pip install codecov
- pip install -e .[dev]
- if [[ $TRAVIS_OS_NAME == linux && $TRAVIS_PYTHON_VERSION == 3.8 ]]; then pip install black; fi
script:
- coverage run --source=sentinelsat -m pytest -v
# check black code formatting
- if [[ $TRAVIS_OS_NAME == linux && $TRAVIS_PYTHON_VERSION == 3.8 ]]; then black --check .; fi
after_success:
- codecov
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/6a12d55b44cdadee9314
on_success: always
on_failure: always
on_start: never