-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (34 loc) · 731 Bytes
/
Copy path.travis.yml
File metadata and controls
44 lines (34 loc) · 731 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
40
41
42
43
44
language: node_js
node_js:
- "7"
sudo: required
dist: trusty
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
- /^greenkeeper/.*$/
# install headless chrome
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
install:
- npm install
before_script:
- npm test
script:
- npm run build
before_deploy:
- cd dist
deploy:
provider: npm
api_key: $NPM_TOKEN
email: vlad.sternbach@gmail.com
skip_cleanup: true
on:
tags: true