Skip to content

Commit 65e07de

Browse files
committed
Added automation scripts
1 parent 0d7f9b9 commit 65e07de

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
node_js:
3+
- '6'
4+
5+
before_install:
6+
- stty cols 80
7+
8+
env:
9+
dist: trusty
10+
sudo: required
11+
addons:
12+
firefox: stable
13+
chrome: stable
14+
15+
before_script:
16+
- "export DISPLAY=:99.0"
17+
- "sh -e /etc/init.d/xvfb start"
18+
- sleep 3
19+
- npm install -g [email protected]
20+
21+
script:
22+
- npm run build
23+
24+
deploy:
25+
- provider: script
26+
script: chmod +x ./deploy_npm.sh && ./deploy_npm.sh
27+
skip_cleanup: true
28+
on:
29+
tags: true

deploy_npm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd package
2+
printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> ./.npmrc
3+
npm publish .

0 commit comments

Comments
 (0)