2018-12-14 05:54:43 +01:00
|
|
|
# TODO: Figure out a way to use nvm in the linux build
|
2018-12-14 05:29:52 +01:00
|
|
|
linux:
|
2018-12-17 01:38:06 +01:00
|
|
|
image: node:10.13.0
|
2018-12-14 05:29:52 +01:00
|
|
|
tags:
|
|
|
|
- docker
|
2018-12-05 23:46:41 +01:00
|
|
|
script:
|
|
|
|
- whoami
|
|
|
|
- node -v
|
|
|
|
- yarn -v
|
|
|
|
- yarn install --frozen-lockfile
|
2018-12-14 05:29:52 +01:00
|
|
|
- export SIGNAL_ENV=production
|
2018-12-05 23:46:41 +01:00
|
|
|
- yarn generate
|
2019-10-23 02:20:11 +02:00
|
|
|
- $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
|
2018-12-14 05:29:52 +01:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- release/
|
|
|
|
|
|
|
|
osx:
|
2018-12-05 23:46:41 +01:00
|
|
|
tags:
|
2018-12-14 05:29:52 +01:00
|
|
|
- osx
|
|
|
|
script:
|
|
|
|
- nvm install
|
|
|
|
- npm install --global yarn
|
|
|
|
- yarn install --frozen-lockfile
|
|
|
|
- export SIGNAL_ENV=production
|
|
|
|
- yarn generate
|
2019-10-23 02:20:11 +02:00
|
|
|
- $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
|
2018-12-14 05:29:52 +01:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- release/
|
|
|
|
|
|
|
|
windows:
|
|
|
|
tags:
|
|
|
|
- windows-cmd
|
|
|
|
script:
|
|
|
|
# install
|
|
|
|
- set PATH=%PATH%;C:\Users\Administrator\AppData\Local\nvs\
|
|
|
|
- set SIGNAL_ENV=production
|
|
|
|
- set /p NVMRC_VER=<.nvmrc
|
|
|
|
- call nvs add %NVMRC_VER%
|
|
|
|
- call nvs use %NVMRC_VER%
|
|
|
|
- call "C:\\PROGRA~2\\MICROS~1\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat"
|
|
|
|
- call yarn install --frozen-lockfile
|
|
|
|
# build
|
|
|
|
- call yarn generate
|
|
|
|
- call node build\grunt.js
|
2018-12-14 05:34:10 +01:00
|
|
|
- call yarn prepare-beta-build
|
2019-10-23 02:20:11 +02:00
|
|
|
- call node_modules\.bin\electron-builder --config.extraMetadata.environment=%SIGNAL_ENV% --publish=never --config.directories.output=release
|
2018-12-14 05:34:10 +01:00
|
|
|
- call node build\grunt.js test-release:win
|
2018-12-14 05:29:52 +01:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-02-22 00:57:32 +01:00
|
|
|
- release/
|