-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
81 lines (66 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: node_js
node_js:
- "10"
os:
- linux
- osx
env:
matrix:
- BINARY_BUILDER="true" TRAVIS_NODE_VERSION="10"
before_install:
- nvm install $TRAVIS_NODE_VERSION
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- node --version
- node -p 'process.platform + "@" + process.arch'
- npm --version
- npm install node-pre-gyp -g
- npm install electron-builder -g
- npm install npx -g
install:
- npm install
script:
- npm run electron:build
- mkdir release
- >
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cp dist_electron/*.deb release
rename -v "s/linux/ubuntu/" release/*.deb
cp dist_electron/*.deb release
cp dist_electron/*.AppImage release
rename -v "s/linux/ubuntu/" release/*.AppImage
cp dist_electron/*.AppImage release
cp dist_electron/*.snap release
rename -v "s/linux/ubuntu/" release/*.snap
cp dist_electron/*.snap release
fi
- >
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cp dist_electron/*.dmg release
fi
- ls -lha release
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8-multilib
- gcc-multilib
- libzmq-dev
- libkrb5-dev
- bc
- bsdtar
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
deploy:
- provider: releases
file:
- release/*.*
file_glob: true
skip_cleanup: true
api_key: ${GITHUB_KEY}
on:
tags: true