-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·91 lines (79 loc) · 2.41 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
# test stage will test all branches against:
# - linux python 3.6, 3.7, 3.8
# - osx python 3.7
#
# deploy stage builds and test the wheels when jobs is
# - pull request
# - master branch
# - tagged commit, only this will be uploaded to pypi
services:
- docker
stages:
- test
- name: deploy
if: type = pull_request OR branch = main OR tag IS present AND repo = USDA-ARS-NWRC/awsm
env:
global:
- TWINE_USERNAME=__token__
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
# defining the unittest jobs
unittest: &unittest
stage: test
os: linux
dist: bionic
language: python
cache: pip
addons:
apt:
packages:
- libeccodes-tools
homebrew:
packages:
- eccodes
- gcc@7
install:
- python3 --version
- python3 -m pip install tox-travis cython
script: tox
jobs:
include:
# test stage
- <<: *unittest
python: 3.6
env: TOXENV=py36
- <<: *unittest
python: 3.6
env: TOXENV=coverage
- <<: *unittest
python: 3.6
env: TOXENV=flake8
- <<: *unittest
python: 3.7
env: TOXENV=py37
- <<: *unittest
python: 3.8
env: TOXENV=py38
- <<: *unittest
os: osx
osx_image: xcode11.2 # Python 3.7.X running on macOS 10.14
language: shell
env:
- TOXENV=py37
- CC=gcc-7
- NOT_ON_GOLD_HOST=yup
- stage: deploy
script: skip
deploy:
cleanup: true
provider: pypi
distributions: sdist bdist_wheel
skip_existing: true
user: __token__
password:
secure: "kUOwEakjORK+ULawFhpAqWlD6dnAhiitgk/66yhM628A+Ndpiuj6Zzf5K3ZCGRTN7Wz02NFazHDt1TxZgVzwH0HUz1shTJPyZRvJyoqRXHvaww5GOI7mCD+JfL8Ec4czfgAYa47d/m4EvsCUgF3B6htbZkjxrLYJ6WI9Z8b2+PQHNtv51O5n70dEgCc5SdOFpuoZmB27IUROuSX83bt0YMuxDcjgFL0RtX0mtUS0Oh8qJr34jGFnO4Qwzz4ziIbh33lX8dHm+d3bqoXNmXqu6fYWPr/tQmP4j2TAMffjoLxjBfVz4Gjvcy/n2kHfwVmS0F8P7N2hT1NjPJx9uV19t2pNbshM56CLKvH+nHyaLCy8c1pfLAt8KVbN9digt7qx/HZ5x/M6M+ahDilLYlrA98vqEz8RmHssLSs+8gYoYo93GIfgDnO2DDA/ekGAauxzEVOkYv/lGmTrmBnlSNXtXE7PNMHB9caDgE+SABUq1dv9QE/+Txqv7AcHGTjl30azjpZg5irAhuivu/t7XRUjJRBV7/Y7RSin906jG8KS8SeZFFGMnkCmHoaAVR+F5+OAnD6tiOmPqCW64DO0NwJJVhS74E9Ma0Rxug7VjE9+T56kRPvynsHdxh7E243Ns6cVPHUJXQuKEAnKGgXhylE7fKAwcFZvq4LtTkRsgEhHzZM="
on:
tags: true
repo: USDA-ARS-NWRC/awsm
allow_failures:
- python: 3.6
env: TOXENV=flake8