forked from dashpay/js-dp-services-ctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (35 loc) · 835 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
sudo: required
dist: trusty
language: node_js
node_js:
- '10'
- '12'
branches:
only:
- master
- /^v(0|[1-9]\d*)\.(0|[1-9]\d*)$/
- /^v(0|[1-9]\d*)\.(0|[1-9]\d*)-dev$/
- /^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-]+)*))?$/
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
- DOCKER_COMPOSE_VERSION="1.18.0"
before_install:
# Add token for @dashevo private npm registry
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
install:
- npm install
script:
- npm run lint
- npm run test
deploy:
provider: script
skip_cleanup: true
script: bash scripts/travis-deploy.sh
on:
tags: true
repo: dashevo/js-dp-services-ctl