forked from alfa-addon/addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.01 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
branches:
only:
- develop
- master
# - /v\.\d+\.\d+\.\d+/
language: python
python:
- "2.7"
# install: pip install codecov mock
script:
# - coverage run tests.py
- echo 'testing'
- echo $TRAVIS_COMMIT_MESSAGE
# after_success: codecov
before_deploy:
# - pip install Sphinx
- wget https://raw.githubusercontent.com/Alfa-addon/travis_scripts/master/deploy_addon.py
- python deploy_addon.py -z
- export RELEASE_ZIP=$(ls *.zip)
deploy:
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: $RELEASE_ZIP
skip_cleanup: true
on:
condition: $TRAVIS_COMMIT_MESSAGE == release
python: "2.7"
# Deploy to my Kodi repo
- provider: script
skip_cleanup: true
script: python deploy_addon.py -r
on:
condition: $TRAVIS_COMMIT_MESSAGE == release
python: "2.7"
# Publish docs to GH Pages
# - provider: script
# skip_cleanup: true
# script: python deploy_addon.py -d
# on:
# branch: master
# python: "2.7"
notifications:
email: false