Skip to content

Commit 7fd3669

Browse files
committed
Add support for travis-ci, landscape and stickler
Signed-off-by: Adam Dybbroe <Adam.Dybbroe@smhi.se>
1 parent d54773b commit 7fd3669

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.landscape.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
doc-warnings: yes
2+
test-warnings: yes
3+
strictness: high
4+
max-line-length: 120
5+
autodetect: yes
6+
ignore-paths:
7+
- doc
8+
- etc
9+
ignore-patterns:
10+
- ^example/doc_.*\.py$
11+
- (^|/)doc(/|$)

.stickler.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters:
2+
flake8:
3+
max-line-length: 120

.travis.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: python
2+
env:
3+
global:
4+
# Set defaults to avoid repeating in most cases
5+
- PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
6+
- NUMPY_VERSION=stable
7+
- MAIN_CMD='python setup.py'
8+
- CONDA_DEPENDENCIES='scipy coveralls coverage h5py mock requests six appdirs satpy pyorbital python-geotiepoints trollsift dask docutils pyyaml codecov pytest pytest-cov'
9+
- PIP_DEPENDENCIES=''
10+
- SETUP_XVFB=False
11+
- EVENT_TYPE='push pull_request cron'
12+
- SETUP_CMD='test'
13+
- CONDA_CHANNELS='conda-forge'
14+
- CONDA_CHANNEL_PRIORITY="strict"
15+
16+
matrix:
17+
include:
18+
- env: PYTHON_VERSION=2.7
19+
os: linux
20+
- env: PYTHON_VERSION=2.7
21+
os: osx
22+
language: generic
23+
- env: PYTHON_VERSION=3.6
24+
os: linux
25+
- env: PYTHON_VERSION=3.6
26+
os: osx
27+
language: generic
28+
install:
29+
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
30+
- source ci-helpers/travis/setup_conda.sh
31+
script:
32+
- pytest --cov=./
33+
after_success:
34+
- if [[ $PYTHON_VERSION == 3.6 ]]; then coveralls; fi
35+
deploy:
36+
- provider: pypi
37+
user: adybbroe
38+
password:
39+
secure: SY0qo7sZXDjDx0DHvuXrHvL9VTAulgU/T33d6UWXf469jT9DOexuZ2VYLgJbYQen5FSe5JmQE0ZMdId1cb8IPP/77qCgQK6f0lRDa43fSYXhcD+fHzlQskievJrwamkRYx6WBrJbwGAKBNinUgNSaTdbh9XUugziGFiOHUfVppM=
40+
distributions: sdist bdist_wheel
41+
skip_existing: true
42+
on:
43+
tags: true
44+
repo: foua-pps/level1c4pps
45+
46+

0 commit comments

Comments
 (0)