forked from autonomoussoftware/metronome-wallet-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (48 loc) · 1.09 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
branches:
only: travis-build
language: node_js
node_js: "8"
notifications:
email: false
matrix:
include:
- os: osx
osx_image: xcode9.2
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
sudo: true
services: docker
language: generic
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew install git-lfs
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install p7zip-full
fi
install:
- npm i
before_script:
- git lfs pull
script:
- |
if [ "$TRAVIS_BRANCH" == "develop" ]; then
npm test && npm run dist
elif [ "$TRAVIS_BRANCH" == "master" ]; then
npm test && npm run release
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"