forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.53 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
cache: pip
language: python
matrix:
include:
- os: linux
python: "2.7"
- os: linux
python: "3.4"
- os: linux
python: "3.5"
- os: linux
python: "3.6"
- os: linux
python: "nightly"
# - os: linux
# python: "pypy2.7-5.8.0"
- os: linux
python: "pypy3.5-5.8.0"
- os: osx
osx_image: xcode7.3
language: generic
allow_failures:
- os: osx
# - python: "pypy2.7-5.8.0"
- python: "pypy3.5-5.8.0"
- python: "nightly"
fast_finish: true
# Perform the manual steps on osx to install python3 and activate venv
before_install:
- if [[ -n "$TRAVIS_TAG" && "$TRAVIS_PYTHON_VERSION" != "3.6" ]]; then travis_terminate 0; fi; # Deploy on 3.6
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m venv venv; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
install:
- pip install -U pip setuptools
- python scripts/dev_setup.py
script:
- pytest
- python ./setup.py check -r -s
after_success:
- coverage report
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: pypi
user: Laurent.Mazuel
# password: use $PYPI_PASSWORD
# server: $PYPI_SERVER to override PyPI (e.g. https://testpypi.python.org/)
distributions: travis_deploy # Personal step
skip_upload_docs: true
on:
tags: true
python: '3.6' # Universal wheel, don't need to deploy with Py2.7