forked from Azure/azure-storage-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 1.82 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
dist: trusty
sudo: required
cache: pip
language: python
matrix:
include:
- os: linux
python: "2.7"
- os: linux
python: "3.3"
- os: linux
python: "3.4"
- os: linux
python: "3.5"
- os: linux
python: "3.6"
- os: linux
python: "nightly"
- os: linux
python: "pypy3.5-5.8.0"
- os: osx
osx_image: xcode7.3
language: generic
allow_failures:
- os: osx
- python: "3.3"
- 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
- pip install codecov
- pip install coverage
- pip install -r requirements.txt
- pip install -e azure-storage-common
- pip install -e azure-storage-blob
- pip install -e azure-storage-file
- pip install -e azure-storage-queue
- pip install --force-reinstall azure-nspkg==1.0.0
script:
- coverage run -m unittest discover
after_success:
- coverage report
- codecov
notifications:
webhooks:
urls:
- https://outlook.office.com/webhook/a4aad5a1-3f32-42c8-8a5e-903446565be3@72f988bf-86f1-41af-91ab-2d7cd011db47/TravisCI/a018a63e5e994165a2a56b0dd4c62120/3d491bab-ac74-4d43-aeeb-f4b674cb5466
on_success: never # default: always
on_failure: always # default: always
on_start: never # default: never
on_cancel: always # default: always
on_error: always # default: always