-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (33 loc) · 2.1 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: feElRCDOqujsB5RN2zyRazzyLeE8A6Zt+MCtqJHhCyq1WiW+viTQhpUtKfjOL6HHPoZYR0rFidEMXs9XtX91YDsYmhXoVaHMJt0VcB6V/NjEld5Ar8ZbsbmCqT0wyQaz6xOgP4RlbHtLpuoNX0S2FQisNyB6I36SrsPero7ZybuPCTkluE1eNNSObZI2GgxBl3Wit2X73E4jvplHDW47908y/gt1bDvbH6uDuXmXeQrZDHVwkxW5LSbHzOUXXU+A4558H5svTQq6pL51/inVpwZUTm3+0oOYu2ADlqdbWnS5HBXiPYkrb9jBLOrdFix05QDMBsvSADyaQMArWzxRqq51XYvXa5OGH6eRxoatUM2Em1gp1LqyKxh4HsST8xqtjH+l0oE/EGimz7g+YopnUd6vYTCEu12dO4edMamufflfYV09WNqny4YU+WIMuFW5FEVBNWGIjoj7Oh3d4Uusydcfy3YkGw3F3qR43zmTO0lY73l5OfsV8IEddd9+w6/U2oQZ0Wv7WZJpA/37jP7C3nK8WbYQq4Cu8a+xkyFsh2ZCrNx2E/h2/dNO/VZu3zd2g0TnHhN8HNdKqHKV0A+dMz92pY4CXYxIbILGrIfxFlmQg6xrPjNLT78oEzeB99FCzZG7T0L7R0fc74aLpwrXkL2frIv9rfQ1B6FWIehZWwc=
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