forked from dashpay/insight-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (32 loc) · 797 Bytes
/
.travis.yml
File metadata and controls
39 lines (32 loc) · 797 Bytes
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
sudo: false
dist: trusty
language: node_js
node_js:
- '6'
- '8'
- '10'
services:
- docker
addons:
apt:
packages:
- docker-ce
branches:
only:
- master
# Allow builds for version tags (e.g. v1.0.0)
- /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
before_install:
# Login to NPM registry
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
# Use latest supported NPM in order to speedup build and support `npm ci`
- npm i -g npm@6
install:
- npm ci
deploy:
- provider: script
skip_cleanup: true
script: bash scripts/travis-deploy.sh
on:
repo: dashevo/insight-api
tags: true