forked from amqp-node/amqplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (47 loc) · 952 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
language: node_js
node_js:
- "0.8"
- "0.10"
- "0.12"
- "iojs-v1"
- "iojs-v2"
- "iojs-v3"
- "4.2"
- "5.5"
- "6.12"
- "8.9"
- "9.11"
- "10.10"
- "11.1"
- "12"
- "13"
- "14"
- "15"
- "node" # Latest stable Node version
sudo: false
addons:
apt:
packages:
- rabbitmq-server
before_install:
- node --version | (grep -v 'v5' && npm install -g npm@2) || true
# This makes a deploy stage that will run *after* the whole matrix of
# builds above has completed successfully.
jobs:
include:
- stage: deploy
node_js: '11.1'
script: skip
before_deploy:
- sudo apt-get install -y jq
- test "$TRAVIS_TAG" == "v$(jq -r .version < package.json)"
- npm run prepare
deploy:
provider: npm
email: "$NPM_USER"
api_key: "$NPM_TOKEN"
skip_cleanup: true # stop TravisCI from doing git stash --all
on:
branch: master
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+.[0-9]+.[0-9]+$