-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1.93 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
sudo: required
language: node_js
node_js:
- '6'
services:
- docker
script:
- npm test
- npm run coveralls
- docker build -t barracksiot/cli:travis-$TRAVIS_JOB_NUMBER .
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push barracksiot/cli:travis-$TRAVIS_JOB_NUMBER;
fi
deploy:
- provider: npm
email: [email protected]
api_key:
secure: VTrqcB3d0y7jQWb3JuLO2TZTczArGnkOzJsik0vBVv17VB/nZyNkPlGfv1zdIIe5x3hMRwP2V/ual+MMEldLhMnGPI8359XYx6D/NAv+P8MmjwbsVbwo8hRG0ctXlDzHI9ni07zh6UaGsh/XiMEtm1sp1ZSzv8LMjNRetOEvP67SicqGvxD2mZHur30s8Fn0qTleamJddYVluJpvsCLYetobeGEghq+aS3l5A1zbnNDHsV54doyfBRjxMO05Awc8md84i4pZTbAGYFpGRxxkmCW6cyUzgWQnIlKUWSypDslwNRJOCzVIZwaXj8uyrnXCk/Bp0eZiooU5CiMjbLMoF2QMxd94vDyIxju/pYnq+yhMsTTdEHm2ZPZCJxdyMbqc0HscvouPi2va6MYXq3XRtR80kDvlAIWYWMJ8pPuSnlSRFUrk5AtQ6MygJeJxyANc+b45uyHQ1PtfBZd3TLm+PNhEZVFEoe2CAvK6IVaNoac7rMLurM/g/vtjrwbCDFBXvMMEUKuhpiVTyuig0V8lRN8IyEhytFnbMmsdFj0D+/B479fpZYOUAq2lXoJ9CxVn/qaZDYTx8DD7e/mP1xm9xJRcwCPB+RuQqDPkqGdRjXcVhkxzVSCQUHR9fOg2LyI1WHOVoc1gfaYt2kSJZ5seKmvATrp5u++yKPIdvkAR1AU=
on:
tags: true
repo: barracksiot/barracks-cli
notifications:
slack:
rooms:
secure: "Kz+eFdiyTgjZiiuBECC8jSLRg3cyBG5VK/Wt65x6yP/Kmof7qa/A/xMC7L/8OoCec+1vHo3i3xMfUgrXuwatTU5AREDGY3f8QhA6fZa46TyGtSTMWwQcuwamg6yj7fO2zPu4el1qHZ3KPoNhyr4aOw0xZ9ZHDuO6HSj+J1D8mpFIrIlB+kJvsNwdvF+Oe5ohphx9b9Hgg6qiwEo8boYN6MMdl3fl/27OFRZRtZcH3K02HlMTboBiXpA0nNXzMz/E1c4MdlBl1EPb+TjQQoj7zAI0bmBZgCRyWIRDjvkahhRJm1HA/QibBhsDMi2d/swNghAHhED53cORpKZ0DljaFs09YAoU8BIuX3D8NEA33vpjeUy+c3l16qLNt78vv189OOnLcm9po5XOMmmw1IkkshABAH4O1eKy4DU/sqpvh+6HUSCH/NHfyL6I/r2sO7P5slVwKD84AjuMcOp6ZkS2jVA8uYChK0RauEWB2MKO1bYQ1J/AXytNKKfYOS/tmrVQldJfJWzdjdGhlg2rKtNoD4MTc5luvvSb0y3JA8b0k6t/g7bkINXC7vlA+6jduqsAoo44ZvCCiFtiMJLaf71hGF85Ogx2+uFsbIzp9ZsaLxeQOszOn/sgyHjy2w+x76dzVIdE7vBA6vskpSWq0jnO3O4B1SXbvdBDf0BWhWjKX3g="
on_success: change
on_failure: always