-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 2.12 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
language: python
env:
global:
- secure: "FX5ob3xdmhwFAOJ+yf/dXgkOJGIgEb86ZikAEXGGPEPd3l4ErCw9NtfBoj12qO9EiqtsGN3HBSXgIa6MlX0jdiBw2BEYfX9UiubyUPeyenyMzecHuEJQ3aCRIxs2PDHI9A6mYliG9Jp0rlZeU1TxyGX0hymMJGbph4M/kvTqpPfIg4KO+1JveSDBEIqVMvYXdusLvNMCyhGXLX2/gZWpWuFj+DNBhRpNF4woOUDaoLhoVPoDWj4z2+V589LOcjjJBcjpH4m9FdBymofwd0+iLxruTqvC6dIyr0VQ9AmIzx/eS2y3clvdEWakwjNEz2/zGxEVHUMYCrxSsVSdMkwALf4ItW075jn6mr1CUbcX+CYbQaajCzIFQiPsnJES4FNy+glzoPCgCM44cOR5p7Vp2kf1DpFtYzWdoN8IlfE4gXMPPgueWXTrNGh1JvjdO4Ll57KprmklXxB1r/OraFX7oWRbpDrvgGYFi2FtnBCftCLmBFAE3SJRBscN3rIC5/h3vqNrGBut1PuBeKoFU5ge78vCyod7w82Lf5nTpgJDvyoKHJQuGW1hN3i4Yp0wnvpa0rrf/Fqkiycv02CGEgjqjepbw7Ce/bJtg8Y522xVXesl5nxOdXMq5sbggM1sR1Cit8h9hx05BJVzVcIk6yMU1w8pJkMUpF5BirHU+DR5/oU="
install:
- pip install GitPython
- export TRAVIS_COMMIT_MSG="$TRAVIS_REPO_SLUG - $(git log --format=%B --no-merges -n 1)"
script:
- test "$TRAVIS_PULL_REQUEST" = "false" || travis_terminate 0
- test "$TRAVIS_BRANCH" = "$TRAVIS_TAG" -o "$TRAVIS_BRANCH" = "master" || travis_terminate 0
- git config --global user.email '[email protected]'
- git config --global user.name 'Aussie Add-ons Bot'
- >
git clone https://github.com/xbmc-catchuptv-au/repo-devel.git $TRAVIS_BUILD_DIR/.deploy-devel &&
cd $TRAVIS_BUILD_DIR/.deploy-devel &&
./manage_repo.py $TRAVIS_BUILD_DIR || travis_terminate 1
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- >
git add . &&
git commit --allow-empty -m "$TRAVIS_COMMIT_MSG" &&
git push || travis_terminate 1
- if [ -z "$TRAVIS_TAG" ]; then travis_terminate 0; fi
- >
git clone https://github.com/xbmc-catchuptv-au/repo.git $TRAVIS_BUILD_DIR/.deploy-prod &&
cd $TRAVIS_BUILD_DIR/.deploy-prod &&
./manage_repo.py $TRAVIS_BUILD_DIR || travis_terminate 1
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- >
git add . &&
git commit --allow-empty -m "Update $(basename `git -C $TRAVIS_BUILD_DIR rev-parse --show-toplevel`) to $TRAVIS_TAG" &&
git push || travis_terminate 1