-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
37 lines (37 loc) · 2.85 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: aRF0+uxFzHcRCdvkRQb27ulpoiBdC8TpyDvR0M6beInelVYzUA86LmpWlQlZNwFmRjV1QRgZe3LenYvatp10V0Ed1yAqG8346LT1lpEUAiwNfTQA1hxgc0UUMbY2O82YM2ksQYvOBwLHQf2FlPXh8N/ZpPVWf61vtd9CDALMgEeg7dCmsyxyKsNaOqNY0f6QYKZ9LgyQAkkbVBg4hR3iBI8p/B1TteposZRGjSNNWkzI9ZgG+TsOofj3805vd2PSaovEHxE8xYnJ7kL4VynxR3eyRXO1puOKAeqryWj78xnEzACEXyCMW/U5VZGXAFfgHBP4OOEjBiA6XdmM/PaAEgmFgGuD/gcUJKlR7UR3BdqE+HaHOtuXM1vMqrh5NA3E1nTbZhAtQ0a9wkVnpugzK8uFFrAkG56jehKjt9oljYABwbo5FcoOvR/wEZjJ9HBdPDI3FiaMaks/kHAE0ClebbJREahRZwrZ2Cswy7ivLGpQi+MhBxV3AW/wirx/7ofs9Y5uihLT9Rq+6oAfF+Siuvjd14NrnOVIT9YU3nTwU/h24/EgeBgUeoOoLx1mOeOagb3PUjPY9lRIxvG8+XeJhTQ2LjCn8x3U23IUF0tUyohQYNe1dPK9Q7EDMcm0aLPQyNhFOA+XVik5Ax7NvZe08DIureDrf9O2cuELjvcimu8=
notifications:
slack:
secure: tLe3SLqtJIUavWGofHZluciwL8Jbp/yCa1pfU9RRckUq4E5XM8XwouzKLTYGGIxHxcAxzcqx7tC2FEtn+GBYEL/0hLJRmWRJTk3WKtTsP0tvK4d8kBWPyAfhQQX/p8INxBJd8aBQIgAQlbGjNqBorqCWvNAmhXPVikZRPujMJZQ6vVzTG+kZf+7qFRuX2LZ8rLiUfX9uTu1dcBSkGta/PicAmDwOTgOLQMOZHH0IxdmU0cUw+LNJzs9giPlEN6940QHKcpTNhgrMMxh/Pr/tlVh4od1fc0VEgILhmj5u3naCnyid0TBWqnyfi2oai466EOKFkRjFXk5qs/dwlw97jurQf0473UI52zK4X8ewunapH0s/QCk9qz+A7ay73AzV+HxlJb+/ZRJh00WQL1FS0LQ+LXOQCU0S+R9frZeojiHCEn/1RoaunSL5rDFTrRiBaH/Y00DTYF2qNKM8f70WXD6vczIOWhd0/H5u1jvBNhhxc8LNkOdNuqDROfz1GafEVHpnYYhp/qb6BjxrgCTtGjN3bjn2vw0ovRM6XW67k0QvuowQhFtCphCgy5XJlTovfTCZwH0Yszai/39iapUtbpcOqXMqNZeyc3Rqe0rFWDzxUWcp/wp2ArUxinj3JazghuGGPt0JAiCOM0RL22e+OoaDSaVPaUWbyQoTSZq5Xp8=
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 -b leia matrix|| 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 -b leia matrix|| 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