forked from Yelp/swagger-spec-compatibility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 2.72 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
jobs:
include:
# Please remember to keep TOXENV environment variable and python attribute in sync.
# This is a workaround to make sure that we can run tests on OSX and Windows (that have no "native" support for python)
- {env: TOXENV=pre-commit, python: '3.6', os: linux, dist: xenial, language: python}
- {env: TOXENV=py27, python: '2.7', os: linux, dist: xenial, language: python}
- {env: TOXENV=py27, python: '2.7', os: osx, osx_image: xcode10, language: generic}
- {env: TOXENV=py35, python: '3.5', os: linux, dist: xenial, language: python}
- {env: TOXENV=py35, python: '3.5', os: osx, osx_image: xcode10, language: generic}
- {env: TOXENV=py36, python: '3.6', os: linux, dist: xenial, language: python}
- {env: TOXENV=py36, python: '3.6', os: osx, osx_image: xcode10, language: generic}
- {env: TOXENV=py37, python: '3.7', os: linux, dist: xenial, language: python}
- {env: TOXENV=py37, python: '3.7', os: osx, osx_image: xcode10, language: generic}
# TODO(maci): Add Windows tests
- {env: TOXENV=docs, python: '3.6', os: linux, dist: xenial, language: python}
fast_finish: true
allow_failures:
# Windows is available in early release, we should not block ourselves if travis has some issues with Windows for now # TODO(maci) remove this
- os: windows
install:
- ./.travis/install.sh
- source ${HOME}/generated-environment.sh # NOTE: The file is generated from ./.travis/install.sh
script:
- tox
after_success:
# Upload coverage data only for Python 3.6 tests on Linux
- if [ "${TRAVIS_OS_NAME}" == "linux" -a "${TOXENV}" = "py36" ]; then codecov; fi
cache:
directories:
- ${HOME}/.cache/pip
- ${HOME}/.cache/pip-faster
- ${HOME}/.cache/pre-commit
- ${HOME}/.pyenv/
# TODO(maci): Add cache support for chocolatey on windows. NOTE: windows is in early release and have no cache support yet
deploy:
- provider: pypi
distributions: sdist bdist_wheel
on:
branch: master
condition: $TRAVIS_OS_NAME = linux
repo: Yelp/swagger-spec-compatibility
tags: true
skip_existing: true
username: yelplabs
password:
secure: kXWMi+oQOi/gimTmdRkZ7Mt8UBsaY6xeMtOCFq8q8Qkuq3+tStAQ0VXnZ662pkMXbmrFAW2k3s0Pw/WJvOUJeeqAbyMpRV0d/GxSZsXAZaANjKI5GXvE5g0xR7yOQiQKFx788fnxbroOjkGmS1PQqbeXi82NEhl1d0y3I5VmrgVwBTJ197PJTp4YVzDGyLiSmnHLHHE30Z8ncCGZ53WnPM+N5izzwWPX0/6iURUA9i7KIHlgvNy2rst3gfBNUEo5T/PreTRd/Pe5IS2moL8qw+rq+W86d/0jSXqfuyLicAh1OV3n5bgtd5y9dQvnx1VW731dcwXMCHO+vQTQgaXWjpzHDXQl/BWrHH/UXc1LWrhbbmN536fElwAACtn+NupLyrhrTFo9+l0MPmuS2ldwgtKIilYsU2HM/dostc5tFC2/ePK0DLuD0xywdaBy6wg0kasS9cOb4ixWBOqmCkl/brGlM7685hI8mJcmQ0inIjvIC/fZCVNjiL2lVu3TLaHAQmKWFPSJKongNzLo9EQxp3x3F1SAKeVQkDMXecnGt6xbZD34AjKO/b8Nn7+0CMHY7KuUsMBJnNVBIMH9Mb/wyvN4Y4zUTRwXswQwix3qMlBMZb+nwaxPJz1x5LqRMhs7dMfuATNb9XkQZbRYt+V25n7UGwC5ILT3UsBb08t1iXs=