-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (85 loc) · 2.84 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
language: python
matrix:
allow_failures:
- os: osx
- os: windows
- python: "pypy3.5"
include:
- name: "Python 3.5 on Linux"
stage: "Build"
dist: xenial
python: "3.5"
- name: "Python 3.6 on Linux"
stage: "Build"
dist: xenial
python: "3.6"
- name: "Python 3.7 on Linux"
stage: "Build"
dist: xenial
python: "3.7"
- name: "Python 3.8-dev on Linux"
stage: "Build"
dist: xenial
python: "3.8-dev"
- name: "Python nightly on Linux"
stage: "Build"
dist: xenial
python: "nightly"
- name: "Python pypy3.5 on Linux"
stage: "Build"
dist: xenial
python: "pypy3.5"
- name: "Python 3.7 on Windows"
stage: "Build"
os: windows
language: shell
before_install: choco install python
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
cache:
directories:
- /c/Python37
- $HOME/AppData/Local/Temp/chocolatey
- name: "Python 3.7 on macOS"
stage: "Build"
os: osx
osx_image: xcode10.2
language: shell
- name: "Python 3.7 on Linux"
stage: "Deploy"
if: tag IS present
dist: xenial
python: "3.7"
before_deploy:
- python3 setup.py bdist_wheel || python setup.py bdist_wheel
deploy:
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASS
distributions: "sdist bdist_wheel"
skip_existing: true
on:
tags: true
branch: master
- provider: releases
api_key:
secure: oWIFX7Y7lqXRcp0A9hTuhBhoQFnaYG2Iqhwm6pOpnqi6glaA5oOphdUR9MP1VX/4zKLvX+ZNIz+bIg3D1ou+WjvVCt2LJQi9+6KINSEX2EP/fFE68EcvfRT3RImrcsXcmYCeIGW4GfxMgzdR3IoJzefhvWwAB0UIfDboRg1vJAIbxzIZy3SXaft9HbKxJD1Wyc5DKUv/mNeJ78FAsnePPnbt7z8jq9jMgB3e8jmc5kfbMnvzW/eYNkslCXtu7RwuEswFwDr3UMbC1KXKEtuLw4DF+5xOA/7IgzCxtHeJ5kX95Id9dqrPSSqEljq81rJD+dTM1r0m7faDgp39Zzw59KIkM2gDBIOk+0kJXi8Qrel+Ni/6XBglA9NrfRVyrminVh2Q+De4OFXnrD4rIneCEsPDwqGGNW0X/w+1FRzkicJHrRZZAddMmxs7jP9izdeMbWRKshuXN2i/sad/78etQBMyvfvn+GyvxQOiKk/GSP7Yl5dWb0S55JsK4yNQFP4f/aAZhASAPDyqRj3TTUJWLgFetJSw3jRmBfA3GnK6yngRBOhyh+5henaSqTCJaVO4py2vRBJuoVHDPYJ9aOp7DKVG4sa5H5k6w9m7fPM9lhkg1BbIFEYQqxktIc15GmCNCiEFK5rlZSa6Yh74mryCQjtOyfPgYnfbmVycoI5ZZqk=
file_glob: true
file: "dist/*.whl"
skip_cleanup: true
on:
tags: true
branch: master
cache:
directories:
- $HOME/.cache/pip
- .pytest_cache
install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then python -m pip install --upgrade pip ; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then pip3 install --upgrade pip ; fi
- pip3 install pytest
- pip3 install pytest-cov
- pip3 install codacy-coverage
- pip3 install -r requirements.txt
script:
- pytest -v --cov --cov-report xml
- python-codacy-coverage || true