-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
56 lines (49 loc) · 830 Bytes
/
.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
49
50
51
52
53
54
55
56
group: edge
sudo: required
language: node_js
node_js:
- '8'
- '10'
- '12'
services:
- docker
addons:
apt:
packages:
- shellcheck
- devscripts
- jq
install:
- npm install
script:
- npm test
branches:
only:
- master
- v1.x.x
matrix:
fast_finish: true
before_deploy:
- |
if ! [ "$TRAVIS_TAG" ]; then
git config --local user.name "${github_username:?}"
git config --local user.email "${github_email:?}"
export TRAVIS_TAG=$(jq .version package.json | tr -d '"')
git tag "v$TRAVIS_TAG"
fi
deploy:
- provider: releases
api_key:
secure: "$github_token"
on:
repo: sumitgoelpw/zabbix-promise
branch: master
node: '8'
- provider: npm
email: "$npm_email"
api_key:
secure: "$npm_token"
on:
repo: sumitgoelpw/zabbix-promise
branch: master
node: '8'