-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
40 lines (35 loc) · 961 Bytes
/
.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: "3.6"
install: true
script:
- ./check_gm.py
- ./pack_gm.py
notifications: # set notification options
email:
recipients:
on_success: change # change is when the repo status goes from pass to fail or vice versa
on_failure: always
after_success:
# Rename files for GH Releases upload as workaround for travis-ci/dpl#821
before_deploy: |-
git config --global credential.helper store
echo "https://$GitHub_auth_token:[email protected]" >$HOME/.git-credentials
if [[ ! -d gh_releases ]]; then
mkdir gh_releases
for f in *.{zip,grm}; do
if [[ -e "$f" ]]; then cp -v "$f" "gh_releases/${f//\~/.}"; fi
done
fi
deploy:
- provider: releases
skip_cleanup: true
keep_history: true
api_key: $GitHub_auth_token
local_dir: gh_releases
#file: gh_releases/*.{zip,grm}
prerelease: true
overwrite: true
on:
all_branches: true
tags: true