forked from twilio/twilio-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (52 loc) · 1.3 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
dist: xenial
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
services:
- docker
jobs:
include:
- language: python
python: '3.9'
after_success:
- sonar-scanner
install:
- pip install virtualenv --upgrade
- make install
- make test-install
script:
- make test
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST"
== "false" ]; then echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}"
--password-stdin; fi
- make cover
deploy:
- provider: script
script: make docker-build && make docker-push
skip_cleanup: true
on:
tags: true
python: '3.6'
- provider: pypi
skip_cleanup: true
user: __token__
password: "$PYPI_TOKEN"
on:
tags: true
python: '3.6'
notifications:
slack:
if: branch = main
on_pull_requests: false
on_success: never
on_failure: change
rooms:
secure: FbHzWXjWnpy97v4bmm75T15D0zLBdunEQ3l+w7LqC6cR2nCYOLqcIs2VvwJXXpSbSu9CVzRdMQYfsS7AYi+Fakg93nQOLEtkrhkYiq3yRKXsFVICaJOWPUQbZOdouTKtYZF/0P6FzjdBxbZeD7UW12FKiQ+dL9ncBrgGJExrqFo=
addons:
sonarcloud:
organization: twilio
token:
secure: HVZOSecvGA6z08K3JBzCgxT81UoxB7JUXf8qR7fzzadmXtnnSfkkHFu0XyeUPuCFRRAXQMtxHEib4UsHi3U+vqXRyIDh9fLQanaDMFwDdCuUgVvWeB0PUuf/8bxou8qmhVWNfaLtzEOhCzJXuKWUG8tiURsNy2PaJ2xnNGh3UUY=