WebMessage/.travis.yml
2021-04-07 13:20:27 +03:00

54 lines
1.7 KiB
YAML

if: commit_message =~ ^Release
matrix:
include:
- os: osx
osx_image: xcode12.2
language: node_js
node_js: "14"
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: "14"
env:
- ELECTRON_CACHE=$HOME/AppData/Local/electron/Cache
- ELECTRON_BUILDER_CACHE=$HOME/AppData/Local/electron-builder/Cache
- YARN_GPG=no
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+$/"