forked from Azure/msrest-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.32 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
dist: trusty
sudo: required
language: python
cache: pip
_autorest_install: &_autorest_install
before_install:
- git clone https://github.com/Azure/autorest.python.git
- cd autorest.python
- sudo apt-get install libunwind8-dev
- nvm install 7
- npm install # Install test server pre-requisites
- cd node_modules/@microsoft.azure/autorest.testserver
- npm start &
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 2.7
env: TOXENV=py27-autorest
<<: *_autorest_install
- python: 3.4
env: TOXENV=py34-autorest
<<: *_autorest_install
- python: 3.5
env: TOXENV=py35-autorest
<<: *_autorest_install
- python: 3.6
env: TOXENV=py36-autorest
<<: *_autorest_install
allow_failures:
- env: TOXENV=py27-autorest
- env: TOXENV=py34-autorest
- env: TOXENV=py35-autorest
- env: TOXENV=py36-autorest
install:
- pip install tox
script:
- tox
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOXENV -f $TRAVIS_BUILD_DIR/coverage.xml
deploy:
provider: pypi
user: Laurent.Mazuel
skip_upload_docs: true
# password: use $PYPI_PASSWORD
distributions: "sdist bdist_wheel"
on:
tags: true
python: '3.6'