forked from ecmwf/metview-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (54 loc) · 1.99 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
67
68
#---------------------------------#
# general configuration #
#---------------------------------#
sudo: false
branches:
only:
- develop
- master
language: python
matrix:
include:
- os: linux
dist: xenial
env: MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"
env:
global:
- METVIEW_PYTHON_SRC=${TRAVIS_BUILD_DIR}
- PYTHONPATH=${PYTHONPATH}:${METVIEW_PYTHON_SRC}:.
- METVIEW_PYTHON_DEBUG=1
- MAGPLUS_DEBUG=ON
git:
depth: 1
before_install:
# install conda
- |
MINICONDA_URL="https://repo.continuum.io/miniconda"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash ${MINICONDA_FILE} -b
# activate conda
- source ~/miniconda3/bin/activate
# auto-yes for conda
- conda config --set always_yes yes
# update conda
#- conda update -n base -c conda-forge conda
install:
# install deps
- pip install netcdf4 xarray cfgrib pytest pytest-cov black coveralls
- conda install -c conda-forge metview-batch
#---------------------------------#
# build configuration #
#---------------------------------#
script:
- cd ${METVIEW_PYTHON_SRC}
- black --check .
- pytest --cov=metview --cov-report term-missing $EXTRA_FLAGS tests/
after_success:
- coveralls
deploy:
provider: pypi
user: "__token__"
password:
secure: "X83UgpZc8wyryivt8lGxgFYGnVHgeX/pwslTRodmwAIEvbjv/Yg41ehRW4NirKWX5iP0YZwHzSZG0PtdPQLpg0kgwZYASfH0uaMZ63fe8h3ODg3V4mQTboIGcPaw9nEuli7ehlQ0Mp1UzK7ZasXrfI8l89AzDjWtOLlpjkom6tZ6mhsdmaUx2eH5RXDfPdeoryKBWOi/xF0Hl1aXb7a3VDrkTm7dDSJGsrxp8wEfjutohBgH45h6EsoI9BCp+g4nkwgYNQ/b0rw62ZlQbWqOz/CiUK22pX1XGl/I6Xn3hMqHnNV6nRxnn/QcCJ24I5nGpedp/P8KqrrlnQExENeyGEqlRZ1iMdzbu914ygicbT9InJotnnMKsxeYR94/Hlhrbhh0D6oCOmvVKbHeJa4efwM/HFMn6obt2EPwVRJqfZ1N2mbqm3GUciWnY21tzFVYaEqF1MG5RWTyxWs2nhIkHxo4CiANA43UYqOdlkDH50LMzPtVD0NciBTCDqhI1+MIa66OwEyMZUe6mgpxYH6OLV7SuxGfG9Zbtz1LJAfMVP1TuUCWbCHKsskQhVP2VykEvwGR1z3nAribR6Drs2joEQUhuDHm780zsnPbspQGqAsiwkI0WuP3QmMTbqI+piVJ1uChuvQu5UHIalbjDBShcJodp/NKCsgCi3N7YCua6IM="
on:
tags: true