-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
61 lines (59 loc) · 2.5 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
if: commit_message =~ ^Release
matrix:
include:
- os: osx
osx_image: xcode12.2
language: node_js
node_js: "18"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- node_modules
- $HOME/.cache/yarn
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
script:
- |
export CERTIFICATE_P12=cert.p12;
echo $MACOS_CERT_P12 | base64 --decode > $CERTIFICATE_P12;
export KEYCHAIN=build.keychain;
security create-keychain -p travis $KEYCHAIN;
security default-keychain -s $KEYCHAIN;
security unlock-keychain -p travis $KEYCHAIN;
security import $CERTIFICATE_P12 -k $KEYCHAIN -P $MACOS_CERT_PASSWORD -T /usr/bin/codesign 2>&1 >/dev/null;
rm $CERTIFICATE_P12;
security set-key-partition-list -S apple-tool:,apple: -s -k travis $KEYCHAIN 2>&1 >/dev/null;
yarn run generate-icons;
yarn run build -ml -p always;
- os: windows
language: node_js
node_js: "18"
env:
- ELECTRON_CACHE=$HOME/AppData/Local/electron/Cache
- ELECTRON_BUILDER_CACHE=$HOME/AppData/Local/electron-builder/Cache
- YARN_GPG=no
before_install:
- powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;"
- powershell -Command "Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.9.10/python-3.9.10-amd64.exe' -OutFile 'python.exe';"
- powershell -Command "Start-Process C:\Users\travis\build\sgtaziz\WebMessage\python.exe -Wait -NoNewWindow -ArgumentList '/quiet InstallAllUsers=1 TargetDir=C:\Python39 PrependPath=1 Shortcuts=0 Include_doc=0 Include_test=0'"
- powershell -Command "Write-Host ' C:\Python39\python.exe --version'; C:\Python39\python.exe --version;"
- export PYTHON="C:\Python39\python.exe"
- export PATH=$PATH:"C:\Python39\":"C:\Python39\Scripts\"
- powershell -Command "Remove-Item python.exe -Force;"
cache:
directories:
- node_modules
- $HOME/AppData/Local/Yarn/Cache
- $HOME/AppData/Local/electron/Cache
- $HOME/AppData/Local/electron-builder/Cache
script:
- |
yarn run generate-icons;
yarn run build -w -p always;
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"