This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from microservices-demo/enhancement/travis-sla…
…ck-notification Added Travis to Slack notification
- Loading branch information
Showing
1 changed file
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,40 @@ | ||
language: java | ||
sudo: required | ||
services: | ||
- docker | ||
- docker | ||
jdk: | ||
- oraclejdk8 | ||
- oraclejdk8 | ||
install: true | ||
|
||
env: | ||
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=shipping; | ||
|
||
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=shipping; | ||
script: | ||
- set -e | ||
- ./scripts/build.sh; | ||
- ./test/test.sh unit.py | ||
- ./test/test.sh component.py | ||
# - ./test/test.sh container.py --tag $TAG | ||
|
||
- set -e | ||
- "./scripts/build.sh;" | ||
- "./test/test.sh unit.py" | ||
- "./test/test.sh component.py" | ||
after_success: | ||
- set -e; | ||
- ./test/test.sh coveralls.py | ||
- if [ -z "$DOCKER_PASS" ] ; then | ||
echo "This is a build triggered by an external PR. Skipping docker push."; | ||
exit 0; | ||
fi; | ||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS; | ||
- ./scripts/push.sh | ||
|
||
- set -e; | ||
- "./test/test.sh coveralls.py" | ||
- if [ -z "$DOCKER_PASS" ] ; then echo "This is a build triggered by an external PR. | ||
Skipping docker push."; exit 0; fi; | ||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS; | ||
- "./scripts/push.sh" | ||
before_deploy: | ||
- eval "$(ssh-agent -s)" | ||
- chmod 600 $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa | ||
- ssh-add $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa | ||
- eval "$(ssh-agent -s)" | ||
- chmod 600 $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa | ||
- ssh-add $TRAVIS_BUILD_DIR/${REPO}_deploy_rsa | ||
before_install: | ||
- openssl aes-256-cbc -K $encrypted_b5c3402481e1_key -iv $encrypted_b5c3402481e1_iv | ||
-in shipping_deploy_rsa.enc -out shipping_deploy_rsa -d | ||
addons: | ||
ssh_known_hosts: $BASTION | ||
ssh_known_hosts: "$BASTION" | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
# The deploy.sh file points to the deploy file on the bastion. Not one in the repo. | ||
script: ssh -o StrictHostKeyChecking=no $BASTION_USER@$BASTION ./deploy.sh ${REPO} $COMMIT | ||
script: ssh -o StrictHostKeyChecking=no $BASTION_USER@$BASTION ./deploy.sh ${REPO} | ||
$COMMIT | ||
on: | ||
branch: master | ||
notifications: | ||
slack: | ||
secure: tns9qBsF5fcLCeBbMyYEtecnMEDGWVhjK3hD/O022v+4DgDn8r0ne29mK06jrUaJ7L6xSlwy79QAvTklY/sr0WjRRB0ka7btmNVwwYinn6VJYVkSA2Drl5Wbti/Jap9PtH2/GIgObqTlYPfeoDdkIxKS04PjSJTwG22g/AZsAzrIiZHT6rI19JIBrskmfQkPEQuBbfFlP/YDkBZQ2x7hMXuHrxrUbsVNAQ7kFlns7wzTzPpoy2tf8NcYZsh9I7j7YjTW5zwDQe86Yc+AaGuT84xGwt4CShycDQQ0Tck/vb+yT2+k3pB9Bx/p19iB7QJR3TxfLeDJ7F6Oh/PsD6irh3vSeWdqaK4dtSszzHY94ec7vFWE8k9tceJMqWMflPHPiJLV2MJ6kxrCbI6U4c0+HYQm0cGAp+QH9KRjVvosT1U2TiPDBTW028O7VV/BcuU+3FZzmZfF2JDCNPotTwsK0IVgEeaTlqkMYBy5zWN904wudctGCmJBlNMlAJaT7v0F4sE/3UKqVegbfhvFsCUlXMbATqAOaF5vM5DDT0b670jRcIyi9LL6X2z8oegV2xNbCLB2V52IdozTwA36sof4uHMZsy2yejm2c7/DTz0jlhoUjsSCr4/ZOAK36pJk94jeQyUc858ygq0eK+TsR/xFdsZZTSLu0s0qwWbQn6jUvzk= |