-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.ci.yml
More file actions
101 lines (82 loc) · 2.09 KB
/
.ci.yml
File metadata and controls
101 lines (82 loc) · 2.09 KB
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
95
96
97
98
99
100
image: node:24-bookworm
stages:
- build
- test
- export-neutralino
variables:
GIT_SUBMODULE_STRATEGY: recursive
FRONTEND_BASE_PATH: frontend/
SCALENODE_DISK: 8
.test_template: &test_template
stage: test
variables:
SCALENODE_RAM: 6114
before_script:
- apt update -qq > /dev/null 2>&1
- apt install -y -qq tar > /dev/null 2>&1
- ./scripts/install_renode.sh
- npm ci --prefix="$FRONTEND_BASE_PATH"
artifacts:
when: on_failure
paths:
- "$FRONTEND_BASE_PATH/test-results/"
- "httpserver.log"
expire_in: 1 week
build:
stage: build
script:
- cd $FRONTEND_BASE_PATH
- npm ci
- npm run format:check
- npm run build:web
- npm run build:lib
artifacts:
paths:
- "$FRONTEND_BASE_PATH/build/*"
- "$FRONTEND_BASE_PATH/dist/*"
expire_in: 1 week
test_chromium:
<<: *test_template
script:
- npm run test:ci:chrome --prefix="$FRONTEND_BASE_PATH"
test_old_chromium:
<<: *test_template
script:
# Forcefully override version to use Chromium 116.0.5845.82 (August 8th 2023)
- npm i playwright@1.37
- npm run test:ci:chrome --prefix="$FRONTEND_BASE_PATH"
test_firefox:
<<: *test_template
script:
- npm run test:ci:firefox --prefix="$FRONTEND_BASE_PATH"
test_old_firefox:
<<: *test_template
script:
# Forcefully override version to use Firefox 115.0 (July 4th 2023)
- npm i playwright@1.37
- npm run test:ci:firefox --prefix="$FRONTEND_BASE_PATH"
package-neutralino:
stage: export-neutralino
variables:
SCALENODE_RAM: 8192
before_script:
- apt update -qq > /dev/null 2>&1
- apt install -y -qq libarchive-tools rpm xz-utils unzip > /dev/null 2>&1
script:
- ./scripts/build_neutralino.sh
- mkdir release
- cd release
- unzip ../neutralino/dist/renode-ui-*.zip
- rm resources.neu
- chmod +x renode-ui*
- tar -czf renode-ui.tar.gz renode-ui*
- rm renode-ui-*
artifacts:
paths:
- release
package-neutralino-debug:
stage: export-neutralino
extends: package-neutralino
variables:
SCALENODE_RAM: 8192
DEBUG_BUILD: "true"