chore(ci): update packaging script output directory
Adjusted the packaging script in `.gitlab-ci.yml` to save artifacts in `/tmp/` for improved storage management and accessibility. Additionally, fixed a conditional statement in `base.lua` to properly handle the failfast option during testing.
This commit is contained in:
parent
4475ebb556
commit
02f78d379b
@ -77,15 +77,15 @@ release-image_client:
|
|||||||
- if: $CI_PIPELINE_SOURCE == "web"
|
- if: $CI_PIPELINE_SOURCE == "web"
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
package-extension:
|
package-mod:
|
||||||
stage: release
|
stage: release
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache tar
|
- apk add --no-cache tar
|
||||||
script:
|
script:
|
||||||
- DATE=`date +"%Y-%m-%d"`
|
- DATE=`date +"%Y-%m-%d"`
|
||||||
- tar zcf test_harness_${DATE}_${CI_COMMIT_REF_SLUG}.tar.gz --exclude .luacheckrc --exclude .gitlab-ci.yml --exclude .vscode --exclude .util --exclude client --exclude opengl --exclude \*.tar.gz --exclude .git\* --warning=no-file-changed --transform 's,^./,test_harness/,' .
|
- tar zcf /tmp/test_harness_${DATE}_${CI_COMMIT_REF_SLUG}.tar.gz --exclude .luacheckrc --exclude .gitlab-ci.yml --exclude .vscode --exclude .util --exclude client --exclude opengl --exclude \*.tar.gz --exclude .git\* --transform 's,^./,test_harness/,' .
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "*.tar.gz"
|
- "/tmp/*.tar.gz"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
version: "3.2"
|
version: "3.2"
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
|
restart: no
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
@ -11,4 +12,4 @@ services:
|
|||||||
SHOW_DEBUG: ${SHOW_DEBUG}
|
SHOW_DEBUG: ${SHOW_DEBUG}
|
||||||
RUN_TESTS: ${RUN_TESTS}
|
RUN_TESTS: ${RUN_TESTS}
|
||||||
STOP_SERVER: ${STOP_SERVER}
|
STOP_SERVER: ${STOP_SERVER}
|
||||||
FAILFAST: $[FAILFAST}
|
FAILFAST: ${FAILFAST}
|
||||||
|
3
base.lua
3
base.lua
@ -546,9 +546,8 @@ local run_tests = function()
|
|||||||
print(" " .. err)
|
print(" " .. err)
|
||||||
failed = failed + 1
|
failed = failed + 1
|
||||||
if minetest.settings:get_bool("test_harness_failfast", false) then
|
if minetest.settings:get_bool("test_harness_failfast", false) then
|
||||||
print("FAILFAST !!!!!!!!!!!!!!!")
|
|
||||||
tests_state = TESTS_STATE_ENUM.DONE
|
tests_state = TESTS_STATE_ENUM.DONE
|
||||||
return
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user