-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.64 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
38
39
40
41
42
language: java
sudo: required
services:
- docker
jdk:
- oraclejdk8
env:
global:
- PATH="${PATH}:${HOME}/.local/bin"
install:
- pip install --user awscli
script:
- set -o pipefail
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
gem install travis-cron_tools;
ruby .travis-cron.rb;
fi;
- if [ ! -z "$AWS_ACCESS_KEY" ]; then aws cloudformation validate-template --template-body
"file:////${PWD}/deploy/aws-ecs/cloudformation.json" | jq . ; fi;
after_success:
- export GROUP=weaveworksdemos
- "./push.sh"
deploy:
provider: s3
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: weaveworks-cfn-public
skip_cleanup: true
local_dir: cfn-to-publish
upload_dir: microservices-demo
acl: public_read
on:
branch: master
condition: '"$TRAVIS_EVENT_TYPE" != "cron" && -z "$DEPLOY_DOC"'
notifications:
slack:
rooms:
secure: p9hoJ6bSxBNdRqrnOFQC+FHAkfhRAw+nxy27lCBwWRVTimB03Ja14RWUKIYkmmEt0WCAW7gQxPM4JHmoczIyaDjNmk5F+mw584ctqeBlKhdIq73RIKSilBwdo9aTCgTVPVuKyRqNIaESWmA95zs1NqTi1Hbf0ER22pFszetqfrQwdDpVK8siwLV6pOtqG+ugz9XWksCYbD+86PA9j9SNuVDTbBF2oI9xuXQ9tmubbJCoRTFBrDPiGMTd2pFqNUmL2naXVrNqNbhI5uTu2wKxGUTU9KZeRDN/a+M1nGh0Aegi+b8khioQ5/TmOfLALya/spLGqKGDK16TIAQXiVenaXlUkQ089td9jOMs8X/dk3fVsnq8hObLS5b//waSqU/x9miEGcDFiEWke8N+IG2e1PB/UjVyI02tdwQ/2XLMWuZIZtxHhcpLArCV/QZNvza0OhshvIQD+2e5kVD6er2iuXjJ3kex6rufAkMXNI1YzbHofLnmoH6XwZMaBWUa4yhivFp9vkggwEWUN/ZIgJnCmy8I9qM82IHlLDl3hdklRZlhexNhXnBxgc+bK0duMIC2qzQJq1Cfb555D5DWqph1PlrcMnrKmKvC2uJFhhsKHuo3jSa/WR/JHUg1WEWdh4gQVFIz0f/FgGM5wXm20pZn8l4rVkEoUT3KWztINNFjA9E=
on_success: always
on_failure: always
on_start: always
on_pull_requests: false