forked from amqp-node/amqplib
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (37 loc) · 855 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
language: node_js
node_js:
- "10.10"
- "11.1"
- "12"
- "13"
- "14"
- "15"
- "16"
- "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]+$