-
Notifications
You must be signed in to change notification settings - Fork 229
/
.travis.yml
20 lines (20 loc) · 1.27 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sudo: required
services:
- docker
language: node_js
node_js:
- '4.8.3'
before_install:
- npm install -g npm@'>=2.13.5'
deploy:
provider: npm
email: buildmaster@rocket.chat
on:
tags: true
all_branches: false
skip_cleanup: true
api_key:
secure: QV9PS3e+IR2gNBjG1d7Cw2xmWfFt2f/P4TXTdcjKty8ugypqau+2I/TM/NJ44yuTuRGde88U4E3vFqwt5du7BUqSgffkbF0VEh+Qh1iuWeqZWJCknmwKIk2YepDce+7/JZILfHnz2R3w9+sfixLe6NIyyl/92PAtZXMOqgobEZFaK2MotZihjBBHwmq86vHkf2ofx1PRkEooLhwvOvUeCXbJNYHYrdna43J9SX3aKlcWkiKRBqBNLm6Z70e8wA/EKRIj0/LJs+mrCbx1zQL/P7vj/ZCWmO3e6pBUjp7PO0Qp8CFBaDnhCU1akjZzoO/dqCWY+B5IJsOexAWD9zR9k1DS4QmuHvajCKCX5CMGqPsR9CSo67ZDpOdi9HhtYqTUHHKoAK4y0Fc/nxI9YPUZwvQWGe20meiodZEV2ttdfm3CRpAUyBen7D0ulEAyVmU0EZ+0iAnx8Y6kGp9EfgaZu5hCAmcHr94bM/w3rRWs+DW4cI4sve2e0Md9uzKaZ2HstcEGkLMskYkJJIpb8Yz6wJmWId7drgkymVnnFTH+WWIJmdiGSMNQcnMTmCm9WbVaNMk+6HMUyddvGbQfZ2JaebX49V4EhCKvXp9dtSyC1QnG9LFdC+T3QPW6cA7ijGbwuPsQyXPiVEIn+LxskF3SrjnDHaZ5TxdstVWnXj0Dh30=
after_script:
- if [[ $TRAVIS_TAG ]]; then CURL_DATA='{"source_type":"Tag","source_name":"'"$TRAVIS_TAG"'"}'; else CURL_DATA='{"source_type":"Branch","source_name":"'"$TRAVIS_BRANCH"'"}'; fi
- "curl -H \"Content-Type: application/json\" --data \"$CURL_DATA\" -X POST https://registry.hub.docker.com/u/rocketchat/hubot-rocketchat/trigger/$PUSHTOKEN/"