forked from aussieaddons/plugin.video.catchuptv.au.nine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.82 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
language: python
python: 2.7
env:
global:
- secure: QaqFIFHqxo94x3L+qe5uDIibwJzHX6yCvZVFqMPt+Advwj4OKX0B9X6b/vIA0swWpJ3Od54Oxx0CR9tZxvUXhSTZxlN8mFJt8pSmMH1M82PllFo3KnCzLqp2Sbgp+fJEUI75Fg5yLJcheJ9/EfDptGIZCQc2LND1WL3QEV/EaKs=
notifications:
slack:
secure: fBecuFt6/mBRp84W+vgwYIH0aKdktVr3u4y1jZ/YxtwKFLEzAuhFpsqojenDPdYBPjWLj5nT6knQ802zWd+EwmkvGoW3TLFVjHkiGu/f/QgQnUsrgE0Ckclde4PS6nz5udFnWG4xrXLqLv4KXni1D3J338qyyCkAPdpoZXx5VVQ=
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/aussieaddons/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/aussieaddons/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