forked from aussieaddons/plugin.video.afl-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.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: "Lmstns3iW43NaxifZWXasCo0/Rxq8YKTEvgaIWxFVa6HFw8HUGpubrbk7snlF4NLcJIMlpIAKDAAO2fjKldqLEjp5hYPw8sfXqWpa7c3dO0CuSJg9Fb0w5hUulyyfqbLGe5uDxl+WoptPYfDp1fH1ZgBhS9m2bZc1fDeoREDIcBxn+DCoHuxsOSH6HsLI4AMWfNQ1q8LMscpbsGoN81RrMuYan5u6QvSeG0kVOZnf05bN5nvTovaLCUYdMf15qfwrMfCDAQqW4tKqLtWLlmDY0/0BC2MplzbwU1+UkQ1syI4sOw2PGIzL6nRLhdkk+6RZbs0KE2PRKkSWofkRU6zktl534VUixki4RyJnafLLs6rAl/36AMVuJ+qh89ptA1xXFfOE7A0molEAp3kpReW4jZQsfSFHudlyZhZCx5sDXHAXp6xK3eoBgOeXp1anTfqZcNHTgEI959HWgvlIA4w/p2vQ9InR+KTQBX8UnoTtGXwlNZG3gvHKU/WppC5COd/k3Am/JL28wq570damY2OtEg6zXbOkZfRmiKbCgGXOUogH6VmYQkRh1fNICwJQ8+w7nhcYLNDebu+QpLCLsKsjzW9KNu6xJjaD9l1D8xvVT0Rpl8ApdmWrZwBH3gXMy/x0EVYvY2lplfB+E9etBLR4NpPZGtFq8gEkiAmwG794p8="
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 'aussieaddons@aussieaddons.com'
- 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