forked from oxen-io/session-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (59 loc) · 1.64 KB
/
.gitlab-ci.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
# TODO: Figure out a way to use nvm in the linux build
linux:
image: node:10.13.0
tags:
- docker
script:
- whoami
- node -v
- yarn -v
- yarn install --frozen-lockfile
- export SIGNAL_ENV=production
- yarn generate
- $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
cache:
paths:
- node_modules/
artifacts:
paths:
- release/
osx:
tags:
- osx
script:
- nvm install
- npm install --global yarn
- yarn install --frozen-lockfile
- export SIGNAL_ENV=production
- yarn generate
- $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$CI_COMMIT_REF_SLUG' --publish=never --config.directories.output=release
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
- call yarn prepare-beta-build
- call node_modules\.bin\build --config.extraMetadata.environment=%SIGNAL_ENV% --publish=never --config.directories.output=release
- call node build\grunt.js test-release:win
cache:
paths:
- node_modules/
artifacts:
paths:
- release/