-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
36 lines (36 loc) · 2.84 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
language: python
env:
global:
- secure: abidki0eF4cOKOHkXR4jdWyp1tWglmxYmWCFgKE9gK6cQDcA7V2Z4ZeuuWjir9ZpmYp0lVk/3iF2/0d5SPFy2+hlph7tK3rC+5UvjG1WxeJQh7ybNBWUHOQx5vmfG0H9ZS/OCjGnjMDo9UlxpPJCdxM5vl3uBhBh2KJXkqtCLg7b0lFMq/4HT17UswRlw7L9H8W/gcTGCOqxrvWpg5iz/sKfNpfaGJzbCtGp1S2JieZMTymBWwsLAy7bvDV+DTmPE1Lqax7REngkBtzVte0xAPO+XA6wYTnwnR0yDrKddEeIa5kN860oxlGY7ppuYjaKKvl+evGvKHFGVmSmLBtWzcH2vaIJHZhaAn4hfd5ifGdekohayr9YJq47zNbEGUT+mmzthpC6x2X3/EIqsjCiP7TTdC/36+qrROv1O0QpBlzrnmc0Y7wRayPtYEfBfgNpCW2MxbPi78y6TuJqF13UslGtxBSYEcDB5rgwUUl0AH5MgJo6epjqzYfHna0/NotB96TQv0MsOoIiBupApg5RteJduNZ6SirzyDAim2zFjJll6JJE2ghL3a0e5d1amel1q/UI8bVLsy503JhQU/q8E5kiTATRN/T8qVkuQvr/R4jwp1ds8bEDSayBgq4ACvu/xw7MQfkbZMUQBnUaDje3auXhF3bbFlRIfBTveUJlv1Q=
notifications:
slack:
secure: MyuUINwSDTU2X4udVoiyA3JI6KSraPki5drCDm9g4wYOLuN9kGIjiMnNtf1WjRfpubsPPIAqpuRim2L+wmAH9EM70u+yzEm+vK6W1X7fw8O5TDxM3/e+q7TszlzKwzIdhFCpkTv+kwZWpFjWoc5cqMTpDRmmtMh1JFA75usFVIYTZd+Tv16X3PmVaVw0xRAlhAdyQVOcbK0NIZHbPgahyEDU/o99Ig2CXi7Gx9Fo8zmJxWQ10ybTKvFBAlwnAJsQzZ6VP8DzWFFvedBWmymQIwaVjMmn1fg4orX1itwnl+69hcvy0DFClTTf4A5J1sGu0s0KeMV4kZdZdLy4WyBqQsJcxzY2uUyCXLaH0bRooGKlI9wQbFuHGMHVY7AGXdEheizxYytuCfyjswQpTy0gsJ8RZa3cfLaPyJFLDobdi0dm1a616aqU8Z4Y7cUCKZ15U2Spk5fRqJKq0Kp763YhQuTguzQMKlCxzQgsHwBWwTK3b03FvIdrulnwPMj7f3VgPfp6byKirJzckFw5vU5fRABzNf7x+jlJ3yBYzABgARwgpAHHEYKrqhjmecNy/ppWH9100gy71VBV/cdsJ5ZMrIkUseH4EQDud5M+NOLwJ9rNlGqzT49yQkR8GrUS+XJ9eTMT/XyLYZcDG27z2Y/w7DwbEGpbczNrBBgNzPHbXA4=
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/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