forked from Azure/msrest-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (91 loc) · 2.16 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
88
89
90
91
dist: xenial
sudo: required
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 --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
jobs:
include:
- stage: MyPy
python: 3.6
install:
- pip install mypy
script:
- mypy msrest
- pipenv install --dev --skip-lock
- pipenv run 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.4
dist: trusty
env: TOXENV=py34
<<: *_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: 2.7
env: TOXENV=py27-autorest
<<: *_autorest_install
<<: *_test
- stage: Test
python: 3.4
dist: trusty
env: TOXENV=py34-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
allow_failures:
- env: TOXENV=py27-autorest
- env: TOXENV=py34-autorest
- env: TOXENV=py35-autorest
- env: TOXENV=py36-autorest
- env: TOXENV=py37-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'