forked from dashevo/js-dpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 936 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
sudo: false
dist: trusty
language: node_js
# Support Active LTS versions of Node.js
node_js:
- '8'
- '10'
branches:
only:
- master
- /^v(0|[1-9]\d*)\.(0|[1-9]\d*)$/
- /^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
install:
- npm ci
env:
- MOZ_HEADLESS=1
addons:
chrome: stable
firefox: latest
before_script:
# Needed for Karma test runner
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
script:
- npm run check-package
- npm run lint
- npm run test
deploy:
- provider: script
skip_cleanup: true
script: bash scripts/travis-deploy.sh
on:
repo: dashevo/js-dpp
tags: true