-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__travis.yml
50 lines (46 loc) · 1.49 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
jobs:
env:
include:
- stage: build
os: osx
language: node_js
node_js: 12
before_install:
- unset CSC_LINK
- unset CSC_KEY_PASSWORD
script:
- npm install
- npm run lint
- export PACKAGE_VERSION=$(npm run --silent version)
- git tag ${PACKAGE_VERSION}
- if [ $TRAVIS_BRANCH == "master" ]; then npm run package-release; else npm run package; fi
- stage: build
os: windows
language: node_js
node_js: 12
before_install:
# Ref https://github.com/electron-userland/electron-builder/issues/3629#issuecomment-554126964
- echo $CSC_LINK | base64 --decode > cert.p12
- certutil -p $CSC_KEY_PASSWORD -importpfx ./cert.p12
- CSC_LINK=./cert.p12
script:
- choco install zip
- npm install
- npm run lint
- export PACKAGE_VERSION=$(npm run --silent version)
- git tag ${PACKAGE_VERSION}
- if [ $TRAVIS_BRANCH == "master" ]; then npm run package-release; else npm run package; fi
- stage: build
os: linux
language: node_js
node_js: 12
before_install:
- unset CSC_LINK
- unset CSC_KEY_PASSWORD
script:
- sudo apt install zip
- npm install
- npm run lint
- export PACKAGE_VERSION=$(npm run --silent version)
- git tag ${PACKAGE_VERSION}
- if [ $TRAVIS_BRANCH == "master" ]; then npm run package-release; else npm run package; fi