-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (42 loc) · 3.66 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
43
44
45
46
47
48
language: node_js
node_js:
- "6"
# Build the app and a docker image
script:
- npm run build
- docker build -t ${TRAVIS_COMMIT} --build-arg KILLRVIDEO_YOUTUBE_API_KEY=$KILLRVIDEO_YOUTUBE_API_KEY .
# If successful, see if we need to publish also
after_success:
- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-generator:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-generator:${TRAVIS_TAG}
# Sudo required for doing docker build
sudo: required
services:
- docker
env:
global:
# Needed to compile native modules
- CXX=g++-4.8
# DOCKER_USER
- secure: hL9GzKnAuHP130bLzB1nK9eF6bfPD4yFdQ1IdRRp7QDZ+AJ2MUw483w5Uacw6/VNk+KlItO9ySxkAI8gaBcxjxcp+TmFkmD0o4rRQixCoZiqlNeTCMmkx5J6KffNALiFBFPjOvVNXLEYh6lbyIsPJR0/eHGlhCbfpx9Ok9PxzVV4AtNNXVcqCl4hZFWPU8OX7nL0pyQ86MD1WiC/1nfTaE/9zaZ8M/qJhv558KmsSXnFN1eGrwVJLt8XPbZ5aKEvJq3cngwVJ3/hmMQnA6ScgANZFbFrDZo9gDmQLDAbGzQ4mg1wpmvdCGB9HEo14o+ZK3utmnURZDGLHcbgKitIp7fd+FyIktxF3h+hYm7yMV/P67ixLXWxay9F0XXkKF1CPhRU+uEijcWQY/txUItvfHJtDGQbHhChUPmzv2eTQD5QoevFByZ6c3ekQew6hgCPaOsV2FspQQ+XVtdjiiOzmWzeFux2Obc46K85BSyeEp9SjuTJ0772dFBZjWn9UP+M5B8THs4BNPhkSVhceHQBvv65H8DZYEazue0aJYwJhMd1q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ilpmOx/GNz8C78Vy+1rHJev1cekON7O6I5ziU2cNtUR3hr0v55F/DD1EbvsXwptXWV/Pb5FWINmNfX9UrIPeq0XkqIqfbPnVVWlMc35uzwjVzp2yrp6LO1sVIni8/BFIG7bPr75KpNix0UlTAUdjUHomum4M+z8zle6o2CMfJZmKIXvIY4stwrZvO5TvjKQsVDrcednRIhqxAHCWvq0AGVbStEYuWw81VuHE+trud1wDPy+uB9Z65UZSrNGPxAdCFQUeCmtjspkt93AT/mN02hE1VyQ2s6IIRHqqKiUhTzRPsZPrtJ9X29lQUJa8NYonQUnWAQ05ApetZ6D9g7g9CFAuTfdpI1kZ00F0nhVZ++QDhcHaPKCUTjKDG3rKWuUqR//yEV9wftVjYRyWcyQXriw/0zeOGI5z5yQxplmH0rLP0QIhrE/OsDhy4gUNGLhdsqLW3cUIAWtQF1w=
# Also needed to compile native modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
# Cache node_modules between builds to try and speed things up
cache:
directories:
- node_modules
notifications:
slack:
rooms:
secure: YhUaJqbOPyvalHUgyQQ4q34qjRlDPm17DAGEo2GcK7g3oC97kAZaLj1Z6EI37hr/TrJH+QkH2mrFhJohisVmYIn3xSrseaD5WUyMY0dFV4PKTyPB+fAyR4M03CG1kqrVEdspyPNQRJ9er30Nf3246IRHM44tq/M5LkT3U0S6wenZh1WmPtRjUHxupPeD2ByfHJ1pc7LnxwvVGc5o2FcRf+gAL9GWYwrDCMHShL4LmY3iqkEScVbaineg1azxwsnPhmhc4Yv9rQlRqSACl1veH6k9xNZfufOCykKc1j7/Qykt2RrxwyHLANusBzaG018tNt6iR/NJ27xModmCjDdoFd9xM97dw38Pj6ZyF/FNJjgKNz+nvVcPYOCKg8shx+rWtXADAQPDbhDXOAeMrnj2WsYlW2ZDdfU4tLXH4IeLKfPitUetuFvAUuURk9XiHprOqRZBtP3vZqum36q2p598DMWcmpKFPMdEeTZPksrLchEp1+Yid1qVYwZc2f3BQEBNZdkPcpRltxddS0NP1XVlIbTm5dZhej5TIon4c9zSRAXjjykmZVz0q/9vOJ7jB+XLAL+DgPYgHqT/GtS6hoML5x5efNFPsY8Aq2WgAWlCJrewfeIPpXmNL7Idz1o8A+DCf+R2lF6ravZMi6KNSvwHdc1h6KOjcMXPrpmWr56tWEQ=