forked from nukeop/nuclear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 777 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
matrix:
include:
- os: osx
osx_image: xcode9.2
language: node_js
node_js: "8"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
- os: linux
language: node_js
node_js: "8"
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install libdbus-1-dev -y; fi
script:
- npm test
- npm run build:dist
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
npm run build:electron:linux && npm run build:linux
else
npm run build:electron && npm run build:macos
fi
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder