forked from AgregoreWeb/agregore-browser
/
.travis.yml
38 lines (34 loc) · 816 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
35
36
37
38
sudo: false
language: node_js
node_js: "12.16.2"
cache:
directories:
# - node_modules
# - app/node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
# - $HOME/.npm/_prebuilds
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
jobs:
include:
- stage: Test
script:
- npm test
- stage: Deploy Linux
if: tag IS present
os: linux
dist: trusty
script:
- npm run build -- --linux -p always
- stage: Deploy Mac and Windows
if: tag IS present
os: osx
osx_image: xcode10.1
script:
- npm run build -- --mac -p always
- npm run build -- --win -p always
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine