-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
41 lines (41 loc) · 979 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
41
language: python
python:
- "2.7"
- "3.7"
env:
global:
- ADDON_ID=script.module.simpleplugin3
install: pip install codecov mock future
script: coverage run tests.py
after_success: codecov
before_deploy:
- pip install Sphinx
- wget https://raw.githubusercontent.com/romanvm/travis_scripts/master/deploy_addon.py
- pip install -q git+https://github.com/romanvm/kodi-addon-submitter.git
- submit-addon -s -z -m $ADDON_ID
- export RELEASE_ZIP=$(ls *.zip)
deploy:
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: $RELEASE_ZIP
skip_cleanup: true
on:
tags: true
python: "3.7"
# Deploy to my Kodi repo
- provider: script
skip_cleanup: true
script: python deploy_addon.py -r
on:
tags: true
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