forked from Azure/msrestazure-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 1.45 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
dist: xenial
sudo: required
language: python
cache: pip
_autorest_install: &_autorest_install
before_install:
- git clone --recursive https://github.com/Azure/autorest.python.git
- sudo apt-get install libunwind8-dev
- nvm install 8
- pushd autorest.python
- npm install # Install test server pre-requisites
- popd
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 2.7
env: TOXENV=py27-autorest
<<: *_autorest_install
- python: 3.5
env: TOXENV=py35-autorest
<<: *_autorest_install
- python: 3.6
env: TOXENV=py36-autorest
<<: *_autorest_install
- python: 3.7
env: TOXENV=py37-autorest
<<: *_autorest_install
- python: 3.8
env: TOXENV=py38-autorest
<<: *_autorest_install
allow_failures:
- env: TOXENV=py27-autorest
- env: TOXENV=py35-autorest
- env: TOXENV=py36-autorest
- env: TOXENV=py37-autorest
- env: TOXENV=py38-autorest
install:
- pip install tox
script:
- tox
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOXENV -f $TRAVIS_BUILD_DIR/test/coverage.xml
deploy:
provider: pypi
user: Laurent.Mazuel
skip_upload_docs: true
skip_cleanup: true
# password: use $PYPI_PASSWORD
distributions: "sdist bdist_wheel"
on:
tags: true
python: '3.6'