forked from zeebe-io/zeebe-modeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (82 loc) · 2.64 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
cache:
directories:
- "$HOME/.npm"
- "$HOME/.cache/electron"
- "$HOME/.cache/electron-builder"
jobs:
include:
- stage: test
node_js: node
language: node_js
script:
- COVERAGE=1 npm run all -- --x64 --no-compress
- npx codecov
- stage: "distro [windows+linux]"
os: linux
services: docker
language: generic
script:
- |
ENVS=`env | grep -iE '^(DEBUG|NODE_|ELECTRON_|NPM_|CI|TRAVIS|WIN_CSC_|CSC_|GH_|AWS_|BUILD_)([A-Z]|_)*=' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' '`
docker run $ENVS --rm \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "npm i && npm run build -- --win --linux --publish"
- stage: "distro [macos]"
os: osx
osx_image: xcode9
node_js: node
language: node_js
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
script: npm run build -- --mac --publish
- stage: "post distro"
node_js: node
language: node_js
git:
depth: false
script:
- npm run send-license-book-summary
- stage: "nightly build [windows+linux]"
os: linux
services: docker
language: generic
script:
- |
git checkout -b build-nightly
ENVS=`env | grep -iE '^(DEBUG|NODE_|ELECTRON_|NPM_|CI|TRAVIS|WIN_CSC_|CSC_|GH_|AWS_|BUILD_)([A-Z]|_)*=' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' '`
docker run $ENVS --rm \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "npm i && npm run build -- --win --linux --nightly --publish"
- stage: "nightly build [macos]"
os: osx
osx_image: xcode9
node_js: node
language: node_js
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
script:
- |
git checkout -b build-nightly
npm run build -- --mac --nightly --publish
before_cache:
- rm -rf "$HOME/.cache/electron-builder/wine"
stages:
- test
- name: "distro [windows+linux]"
if: tag =~ ^v\d
- name: "distro [macos]"
if: tag =~ ^v\d
- name: "post distro"
if: tag =~ ^v\d
- name: "nightly build [windows+linux]"
if: type IN (cron)
- name: "nightly build [macos]"
if: type IN (cron)