Skip to content

Commit 8194ad6

Browse files
authored
Restore .travis.yml (#418)
1 parent b778fbd commit 8194ad6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.travis.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
language: node_js
2+
node_js:
3+
- "lts/*"
4+
5+
before_install:
6+
- "export CHROME_BIN=/usr/bin/google-chrome"
7+
- "export DISPLAY=:99.0"
8+
- "sh -e /etc/init.d/xvfb start"
9+
10+
script:
11+
- gulp test --coverage
12+
- gulp build
13+
- gulp package
14+
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls || true
15+
16+
sudo: required
17+
dist: trusty
18+
19+
addons:
20+
chrome: stable
21+
firefox: latest
22+
23+
# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
24+
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
25+
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
26+
27+
deploy:
28+
- provider: script
29+
script: ./scripts/release.sh
30+
skip_cleanup: true
31+
on:
32+
branch: release
33+
- provider: releases
34+
api_key: $GITHUB_AUTH_TOKEN
35+
file:
36+
- "./dist/chartjs-plugin-zoom.js"
37+
- "./dist/chartjs-plugin-zoom.min.js"
38+
- "./dist/chartjs-plugin-zoom.zip"
39+
skip_cleanup: true
40+
on:
41+
tags: true
42+
- provider: npm
43+
email: $NPM_AUTH_EMAIL
44+
api_key: $NPM_AUTH_TOKEN
45+
skip_cleanup: true
46+
on:
47+
tags: true

0 commit comments

Comments
 (0)