forked from microservices-demo/front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (25 loc) · 1.25 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: node_js
sudo: required
node_js:
- "4.8.1"
services:
- docker
before_install:
- sudo apt-get install -y make
- make test-image deps
install:
- npm install
env:
- GROUP=weaveworksdemos COMMIT="${TRAVIS_COMMIT}" TAG="${TRAVIS_TAG}" REPO=front-end;
script:
- make test
after_success:
- set -e
- if [ -z "${DOCKER_PASS}" ]; then echo "Build triggered by external PR. Skipping docker push" && exit 0; fi
- docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}";
- ./scripts/build.sh
- ./test/container.sh
- ./scripts/push.sh
notifications:
slack:
secure: tmVjF3xD0nPImvlsnuiU35LZKEFIcZSCR/QJ98x6GBeKTV3SwB2hra8wbHlRh3Dj2dK47YFGSTzzPkp8XrYRpBrqtrPSajwVIoltfmWNg+4WKAZwZK98TLjPcw18Hja1i3iWMCCv2ZpjkhhWSck1Cabh+KX2xBorYNSQDpQ6CokrN2iw/mG1azSG/ioQ4Yp2xhomvNbccLOiaBZed74e+EbJqCIVDnSV2uqmeiDAQp6Ik1/eN8VjT/UjVvVNq6SAiNZ8uNb9oT5A2qR6XMAhN/qDuUpw+ldoM1pH7388nItgaOUhQhxdDJACuj/MaBAEuKDENatOuP2f8H7GMr9L2/sPZLNGL356ZQ8clvRg6/8PlD/JXev0iSYzwXh5yVdT4feg9YoWOULQS9Mzxz/LY0Diu0eSGbK3fUiylpbB0fNqdvi4y3k8WoHHWWPHQASyyNYetlS5PsL0msQweQCpHNDyZ31rBTyzGAoP7hINhG/+pi3EXopjYYOQjcVdFyqjKRURhOMg3GaqT9jEJsD1mj+tpXUYsI6XlCbO82NMDPwIKazb0jJiCTnJ+OTxlGT5MNXrcw1W3cRomO/ZOXPvYLgd2WLCg646DB0QbGC9y0n1EXbDL6vX/nSGaaQE2Q1SUsUuDMM7zs0EQm9RiMl+DTnmQgLsY0geHK6t8a+jvj0=