forked from zeebe-io/zeebe-modeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (89 loc) · 2.3 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
93
94
95
node_js: lts/*
language: node_js
definitions:
- import-cert-win: &import-cert-win
- |
echo $WIN_CSC_LINK > cert.p12
certutil -p $WIN_CSC_KEY_PASSWORD -importpfx ./cert.p12
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- "$HOME/.npm"
- "$HOME/.cache/electron"
- "$HOME/.cache/electron-builder"
jobs:
include:
- stage: test
name: Test on Linux
script:
- COVERAGE=1 npm run all -- --x64 --no-compress
after_success: npx codecov
- stage: test
name: Test on Windows
os: windows
before_install: *import-cert-win
script:
- npm run all -- --x64 --no-compress
- stage: "pre distro"
name: "Create GitHub release"
os: linux
script:
- sudo snap install hub --classic
- GITHUB_TOKEN=$GH_TOKEN hub release create --draft --message=$TRAVIS_TAG $TRAVIS_TAG
- stage: "distro"
name: "Build Linux distro"
os: linux
script:
- npm run build -- --linux --publish
- stage: "distro"
name: "Build Windows distro"
os: windows
before_install: *import-cert-win
script:
- npm run build -- --win --publish
- stage: "distro"
name: "Build MacOS distro"
os: osx
osx_image: xcode11.2
script:
- npm run build -- --mac --publish
- stage: "post distro"
git:
depth: false
script:
- npm run send-license-book-summary
- stage: "nightly build"
name: "Build Linux nightly"
script:
- |
git checkout -b build-nightly
npm run build -- --linux --nightly --publish
- stage: "nightly build"
name: "Build Windows nightly"
os: windows
before_install: *import-cert-win
script:
- |
git checkout -b build-nightly
npm run build -- --win --nightly --publish
- stage: "nightly build"
name: "Build MacOS nightly"
os: osx
osx_image: xcode11.2
script:
- |
git checkout -b build-nightly
npm run build -- --mac --nightly --publish
stages:
- name: test
- name: "pre distro"
if: tag =~ ^v\d
- name: "distro"
if: tag =~ ^v\d
- name: "post distro"
if: tag =~ ^v\d
- name: "nightly build"
if: type IN (cron)