-
Notifications
You must be signed in to change notification settings - Fork 64
/
.travis.yml
87 lines (86 loc) · 2.1 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
dist: xenial
language: python
cache: pip
_test: &_test
install:
- pip install tox tox-virtualenv-no-download
script:
- tox
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOXENV -f $TRAVIS_BUILD_DIR/coverage.xml
_autorest_install: &_autorest_install
before_install:
- git clone https://github.com/Azure/autorest.python.git --branch autorestv3 --single-branch
- nvm install 10
- pushd autorest.python
- npm install "@microsoft.azure/autorest.testserver" # Install test server pre-requisites
- popd
jobs:
include:
- stage: MyPy
python: 3.6
install:
- pip install -r dev_requirements.txt
script:
- mypy msrest
- python -c 'import typing; typing.TYPE_CHECKING = True; import msrest' # Testing there is no circular dependencies in Type checking mode
- stage: Test
python: 2.7
env: TOXENV=py27
<<: *_test
- stage: Test
python: 3.5
env: TOXENV=py35
<<: *_test
- stage: Test
python: 3.6
env: TOXENV=py36
<<: *_test
- stage: Test
python: 3.7
env: TOXENV=py37
<<: *_test
- stage: Test
python: 3.8
env: TOXENV=py38
<<: *_test
- stage: Test
python: 2.7
env: TOXENV=py27-autorest
<<: *_autorest_install
<<: *_test
- stage: Test
python: 3.5
env: TOXENV=py35-autorest
<<: *_autorest_install
<<: *_test
- stage: Test
python: 3.6
env: TOXENV=py36-autorest
<<: *_autorest_install
<<: *_test
- stage: Test
python: 3.7
env: TOXENV=py37-autorest
<<: *_autorest_install
<<: *_test
- stage: Test
python: 3.8
env: TOXENV=py38-autorest
<<: *_autorest_install
<<: *_test
allow_failures:
- env: TOXENV=py27-autorest
- env: TOXENV=py35-autorest
- env: TOXENV=py36-autorest
- env: TOXENV=py37-autorest
- env: TOXENV=py38-autorest
deploy:
provider: pypi
user: Laurent.Mazuel
skip_upload_docs: true
# password: use $PYPI_PASSWORD
distributions: "sdist bdist_wheel"
on:
tags: true
python: '3.6'