forked from firsttris/plugin.video.sendtokodi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 909 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
language: python
python:
- '3.5'
env:
global:
- GH_REPO="github.com/firsttris/repository.sendtokodi.git"
- YOUTUBE_DL="https://github.com/rg3/youtube-dl/archive/master.zip"
- VERSION=0.0.${TRAVIS_JOB_NUMBER}
- ADDON_NAME="plugin.video.sendtokodi"
- REPO_NAME="repository.sendtokodi"
script:
- rm -rf .git/
- envsubst < "addon.template.xml" > "addon.xml"
- cd ..
- wget ${YOUTUBE_DL}
- unzip master.zip
- cp -R youtube-dl-master/youtube_dl ${ADDON_NAME}
- zip -r ${ADDON_NAME}-${VERSION}.zip ${ADDON_NAME}
- git clone https://${GH_REPO}
- cp ${ADDON_NAME}/addon.xml ${REPO_NAME}/${ADDON_NAME}/
- cp ${ADDON_NAME}-${VERSION}.zip ${REPO_NAME}/${ADDON_NAME}/
- cd ${REPO_NAME}/
- envsubst < "addon.template.xml" > "addon.xml"
- md5sum addon.xml > addon.xml.md5
- git add .
- git commit -m "Travis-CI Update"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REPO}" master > /dev/null 2>&1