This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
.gitlab-ci.yml
94 lines (87 loc) · 2.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
stages:
- test
- build
variables:
GIT_DEPTH: '3'
SIMPLECOV: 'true'
RUST_BACKTRACE: '1'
RUSTFLAGS: ''
CARGOFLAGS: ''
cache:
key: '${CI_JOB_NAME}'
paths:
- node_modules/
- packages/*/node_modules/
.branches: &branches
only:
- beta
- tags
- stable
- triggers
- master
linux-test:
stage: test
image: node:12
script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn install
- yarn test
tags:
- linux-docker
linux-build:
stage: build
image: node:12
<<: *branches
script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn install
- yarn build
- yarn release --linux
tags:
- linux-docker
artifacts:
expire_in: 1 week
paths:
- 'packages/fether-electron/dist/*.AppImage'
- 'packages/fether-electron/dist/*.tar.xz'
- 'packages/fether-electron/dist/*.snap'
- 'packages/fether-electron/dist/*.deb'
osx-build:
stage: build
<<: *branches
script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn install
- yarn build
- yarn release --mac
tags:
- darwin-shell
artifacts:
expire_in: 1 week
paths:
- 'packages/fether-electron/dist/*.dmg'
- 'packages/fether-electron/dist/*.zip'
win-build:
stage: build
image: electronuserland/builder:wine
<<: *branches
script:
# Remove the two next lines once the Docker image gets updated to node 12
# https://github.com/electron-userland/electron-builder/issues/4377
- npm install -g n
- n stable
- yarn install
- yarn build
# `win-build` is a linux machine, so it downloaded a linux parity-ethereum.
# We download a windows one to make it cross-compile for windows.
- rm packages/fether-electron/static/parity* && yarn fetch-parity --win
- yarn release --win
tags:
- linux-docker
artifacts:
expire_in: 1 week
paths:
- 'packages/fether-electron/dist/*.exe'