Commit 1f4b2c9 1 parent 5f403bb commit 1f4b2c9 Copy full SHA for 1f4b2c9
File tree 3 files changed +25
-38
lines changed
3 files changed +25
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ build :
2
+ stage : build
3
+ rules :
4
+ - if : $CI_MERGE_REQUEST_IID || $CI_COMMIT_REF_NAME == "master"
5
+ changes :
6
+ - tgui/**/*.js
7
+ - tgui/**/*.scss
8
+ when : always
9
+ image : node:lts
10
+ script :
11
+ - tgui/bin/tgui --ci
Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ task-clean() {
62
62
rm -f ** /package-lock.json
63
63
}
64
64
65
+ # # Validates current build against the build stored in git
66
+ task-validate-build () {
67
+ cd " ${base_dir} "
68
+ local diff
69
+ diff=" $( git diff packages/tgui/public/tgui.bundle.* ) "
70
+ if [[ -n ${diff} ]]; then
71
+ echo " Error: our build differs from the build committed into git."
72
+ echo " Please rebuild tgui."
73
+ exit 1
74
+ fi
75
+ echo " tgui: build is ok"
76
+ }
77
+
65
78
# # Installs merge drivers and git hooks
66
79
task-install-git-hooks () {
67
80
cd " ${base_dir} "
@@ -110,6 +123,7 @@ if [[ ${1} == "--ci" ]]; then
110
123
task-install
111
124
task-eslint
112
125
task-webpack --mode=production
126
+ task-validate-build
113
127
exit 0
114
128
fi
115
129
You can’t perform that action at this time.
0 commit comments