1 | language: node_js
|
2 | node_js: "6"
|
3 | os:
|
4 | - linux
|
5 | - osx
|
6 | dist: trusty
|
7 | osx_image: xcode8.3
|
8 | sudo: false
|
9 |
|
10 | cache:
|
11 | directories:
|
12 | - node_modules
|
13 | - $HOME/.cache/electron
|
14 |
|
15 | addons:
|
16 | apt:
|
17 | packages:
|
18 | - fakeroot
|
19 | - rpm
|
20 |
|
21 | branches:
|
22 | only:
|
23 | - master
|
24 | - /^v\d+\.\d+\.\d+/
|
25 |
|
26 | install:
|
27 | - npm install
|
28 | - npm update
|
29 |
|
30 | script:
|
31 | - npm run lint
|
32 | - if test -z "$TRAVIS_TAG"; then npm run make; fi
|
33 | after_success: if test -n "$TRAVIS_TAG"; then npm run publish; fi
|