-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
95 lines (86 loc) · 2.46 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: python
sudo: true
dist: focal # cannot use xenial because of libeccodes-dev
addons:
apt:
packages:
- libeccodes-dev # for pygrib... in ubuntu starting with 18.04; eccodes-devel in RH
- proj-bin # for pygrib without wheel; proj and proj-devel in RH
- libproj-dev
homebrew:
packages:
- eccodes
- proj
python:
#- 3.2 # py.test fails at runtime
#- 3.3 # pkg_resources on travisci no longer supports 3.3
#- 3.4 # requests 2.22 dropped 3.4 support
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- nightly
matrix:
fast_finish: true
allow_failures:
- python: 3.9 # 3.9 was failing in pygrib wheel, it is failing to run cython despite having cython installed first
- python: nightly # same
- python: 3.8
arch: arm64
- python: 3.8
arch: s390x
include:
# - python: 3.8
# arch: arm64 # works, takes 2.5X normal in travis
- python: 3.8
arch: s390x # works, takes a normal amount of time
# - name: "OSX" # getting a pygrib compile failure with clang
# # 6 errors on implicit declarations, with the clang error mentioning '-Wimplicit-function-declaration'
# # but -Werror is not set, so that's confusing
# os: osx
# osx_image: xcode12 # 10.15.5
# language: shell
# before_install:
# - sudo mkdir -p ~/.cache/pip/wheels # does not exist on osx
# # for osx we can't say "python: 3.8" so we use the system python3
# - python3 --version
# install:
# # am
# - curl 'https://zenodo.org/record/3406483/files/am-11.0.tgz?download=1' > am-11.0.tgz
# - tar xf am-11.0.tgz
# - cd am-11.0/src
# - make serial
# - cd ../..
# - export AM=./am-11.0/src/am
# - $AM -v
#
# # pygrib
# #- sudo apt-get install libeccodes-dev proj-bin # 'eccodes-devel' and 'proj' in RH
# - pip3 install pyproj numpy
# - pip3 install cython # must be installed early
# - pip3 install pygrib
#
# - pip3 install .
# - pip3 install .[test]
git:
depth: 99999
install:
# am
- curl 'https://zenodo.org/record/3406483/files/am-11.0.tgz?download=1' > am-11.0.tgz
- tar xf am-11.0.tgz
- cd am-11.0/src
- make serial
- cd ../..
- export AM=./am-11.0/src/am
- $AM -v
# pygrib
- pip install pyproj numpy # not marked by pygrib as dependencies
- pip install cython # must be installed early to rebuild for newer python versions
- pip install pygrib
- pip install .
- pip install .[test]
script:
- pytest
after_success:
coveralls