This repository has been archived by the owner on Jun 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
40 lines (39 loc) · 1.55 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
language: python
python:
- '2.7'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9992cd0d36a6ba9bb40b
on_success: change
on_failure: always
on_start: never
install:
- make prepare
- make prepare_test
script:
- make test
after_success:
- coveralls
- make pip
- |
body='{"request": {"branch":"master"}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ${TOKEN}" \
-d "$body" \
https://api.travis-ci.org/repo/moira-alert%2Fpython-moira-client/requests
before_deploy:
- export RELEASE_PIP_TAR=$(ls dist/moira_worker-*.tar.gz)
deploy:
provider: releases
api_key:
secure: TJEJ42jvX4DfwEWLP3M4jl8bMSiv39DE/p0qfiwUR0uxQVcmsjv3/BV/ZmUzcyqVIbycKxnLiZRMprjEgCSknZsh/Bxbrl9jQlXpLd8V+ug5yBKrsoW/3flwDCg9F0W4aeGewbqcztgKCf6TRNinBZNPcvjTwRW5Uh4R/7+wXB3f+wO8Zeg4ABBwtjOQ/BWw5/JyXmJ+pkJcJhoVlaM+rKvKf5MAUvQITDdIrP78di7FLPpYcS5zCvqnUfQCfPtzQHhVVXR/cyhEgJdlrcJnQcKZvIzadQOCuj57ebR5rVbnEP30V9sLW4QlXU9gh1gwdRh5bb95CgSU+lTA5OXl9E431x9jCfmDBtAuGW2+2K6C0C61V14FnQRJ2/C3VoA+2Nof+G8ah1KQzx+wm1WbNfyGSet3SMcN8VUcWPwPNas43leFdzD9D2Mw7hcprYDCdnXLyAdJaovBMSRcJHGubs9H5NY1eBM4qD4TPYM2gfkbEmbZQOVrVz4nPzSc1hzmi9oV77fjNIrtz8OChwVlJShHz/8WydrpipMdniH/FfYS5zXdCsWPhMXtfkZSG8rAyPIQskzdnDXdD/hKq4kIX8Bp5UJUeVeEX9bXnA22jAu1bmvTGHPpmG2N8LaJbpr5aHFu3RncWhwdT2361FNyiXnxId5SL4RNpb76k7vAaec=
file:
- "${RELEASE_PIP_TAR}"
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = 2.7