-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
37 lines (26 loc) · 1.43 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
sudo: required
language: node_js
node_js:
- 8.7.0
services:
- docker
script:
- npm run lint
- npm test
after_success:
- npm run coveralls
deploy:
provider: npm
email: "[email protected]"
api_key:
secure: una36evrLnIalmaS+AgyR8qllXaTzzDoHaaPq+weAn1M/Tx4QY0wgo2vWN0YeRpVoV0NIkkxe3K8+QNCQ25n/DW08UbefgoNeRc9yviHwJk0S7HhcI3TtIsIWu21teQbL+Md2rxI4a5uwcvl7FdkI6HW8+95Ue0Y9ZTpK7qlvyVCL5QK8J5vLZMuozw6uZhf0ivz951b8453vybhmoO2kaqyWZevtcWpEPAzsLNuWvqCcRHpnNW5TLQqdWcw81y9FVoCRnNPMK4IQQkvBXvPnFiMMEE91966/bfnaB7YQibFmv3IgVCnble7r3fd0pryahRExaeGfc2mQ5tFqp7dkK0ihIvuS0Gbv6y/xEnEbtVik4LO4i09I7Pvb85Rh4rHcRBeUubKJ6vR/2ibcuYxdz++l+D4DnLu1lNRC0NaEytSLejBdf+2ltU1Xm3ebiNvu46fJgeb3y8YihbmPGUFmmYI9ITbfpjCFbda8xqjYtCzhutYzSFwotXFDm2JXcC/bFzIerXsjnktDEP5aEAkM4R0ZGraeUGSNOcFntp7vJgWQV6oyGLUMHI79vPIJ5CYtEdf8y5e3/OoXwDUTs2BMST/VymwZieKnwK5qETb2vhmbFmUW49rl2hPx737HFac7CwkVb7pAcxXNZdo68pPvABlyXKZ3iMejiJ2nccXHnA=
on:
branch: master
after_deploy:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" ;
export VERSION=$(node -p -e "JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version")
docker build --build-arg version=${VERSION} -t robsonbittencourt/hubot.js:latest -t robsonbittencourt/hubot.js:${VERSION} . ;
docker push docker.io/robsonbittencourt/hubot.js:latest ;
docker push docker.io/robsonbittencourt/hubot.js:${VERSION} ;
fi