-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
92 lines (82 loc) · 2.23 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
82
83
84
85
86
87
88
89
90
91
92
sudo: required
language: node_js
node_js:
- "10"
install:
- NODE_ENV=development npm i yarn
env:
global:
- NODE_OPTIONS="--max-old-space-size=2048"
- NODE_ENV="development"
stages:
- test
- build
jobs:
include:
- stage: test
name: "Test"
if: type = push
script:
- NODE_ENV=development npm install
- npm run build
- npm run test
- npm run lint
- stage: build
name: "Build Linux App"
env:
- DOWNLOAD_ECHO_NODE_URL= "https://d14s13k07yt1gw.cloudfront.net/echo-linux.0.14.0-rc.0.tar"
if: tag IS present
script:
- sudo apt-get install rpm
- npm config set unsafe-perm true
- rm -rf node_modules/node-sass
- npm i
- DEBUG_PROD=true npm run package-linux-with-download-build
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file:
- release/*.deb
- release/*.rpm
skip_cleanup: true
on:
tags: true
- stage: build
name: "Build Win App"
if: tag IS present
script:
- npm config set unsafe-perm true
- rm -rf node_modules/node-sass
- "docker run --rm -v ${PWD}:/project -v ${PWD}/.cache/electron:/root/.cache/electron -v ${PWD}/.cache/electron-builder:/root/.cache/electron-builder electronuserland/builder:wine /bin/bash -c \"npm install && npm run package-win\""
- ls -la release/
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file:
- release/*.exe
- release/*.msi
skip_cleanup: true
on:
tags: true
- stage: build
os: osx
name: "Build macOS App"
env:
- DOWNLOAD_ECHO_NODE_URL= "https://d14s13k07yt1gw.cloudfront.net/echo-mac.0.14.0-rc.0.tar"
if: tag IS present
script:
- npm config set unsafe-perm true
- npm i
- DEBUG_PROD=true npm run package-mac-with-download-build
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file:
- release/*.dmg
- release/*.zip
skip_cleanup: true
on:
tags: true