mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
GitLab CI: touch built files in test stages before running tests
The artifact restoration step does not preserve mtime, resulting in source files newer than built files, resulting in a needless rebuild of everything before actually running the tests. Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
c47943f1af
commit
030f991320
@ -58,6 +58,8 @@ test-libapparmor:
|
|||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
- *install-c-build-deps
|
- *install-c-build-deps
|
||||||
|
# This is to touch the built files in the test stage to avoid needless rebuilding
|
||||||
|
- make -C libraries/libapparmor --touch
|
||||||
- make -C libraries/libapparmor check
|
- make -C libraries/libapparmor check
|
||||||
|
|
||||||
test-parser:
|
test-parser:
|
||||||
@ -67,6 +69,8 @@ test-parser:
|
|||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
- *install-c-build-deps
|
- *install-c-build-deps
|
||||||
|
# This is to touch the built files in the test stage to avoid needless rebuilding
|
||||||
|
- make -C parser --touch
|
||||||
- make -C parser -j $(nproc) tst_binaries
|
- make -C parser -j $(nproc) tst_binaries
|
||||||
- make -C parser check
|
- make -C parser check
|
||||||
|
|
||||||
@ -84,6 +88,9 @@ test-utils:
|
|||||||
extends:
|
extends:
|
||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
|
# This is to touch the built files in the test stage to avoid needless rebuilding
|
||||||
|
- make -C utils --touch
|
||||||
|
|
||||||
- apt-get install --no-install-recommends -y libc6-dev libjs-jquery libjs-jquery-throttle-debounce libjs-jquery-isonscreen libjs-jquery-tablesorter flake8 python3-coverage python3-notify2 python3-psutil python3-setuptools python3-tk python3-ttkthemes python3-gi
|
- apt-get install --no-install-recommends -y libc6-dev libjs-jquery libjs-jquery-throttle-debounce libjs-jquery-isonscreen libjs-jquery-tablesorter flake8 python3-coverage python3-notify2 python3-psutil python3-setuptools python3-tk python3-ttkthemes python3-gi
|
||||||
|
|
||||||
# See apparmor/apparmor#221
|
# See apparmor/apparmor#221
|
||||||
@ -102,6 +109,8 @@ test-mod-apparmor:
|
|||||||
extends:
|
extends:
|
||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
|
# This is to touch the built files in the test stage to avoid needless rebuilding
|
||||||
|
- make -C changehat/mod_apparmor --touch
|
||||||
- make -C changehat/mod_apparmor check
|
- make -C changehat/mod_apparmor check
|
||||||
|
|
||||||
test-profiles:
|
test-profiles:
|
||||||
@ -110,6 +119,8 @@ test-profiles:
|
|||||||
extends:
|
extends:
|
||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
|
# This is to touch the built files in the test stage to avoid needless rebuilding
|
||||||
|
- make -C profiles --touch
|
||||||
- make -C profiles check-parser
|
- make -C profiles check-parser
|
||||||
- make -C profiles check-abstractions.d
|
- make -C profiles check-abstractions.d
|
||||||
- make -C profiles check-local
|
- make -C profiles check-local
|
||||||
|
Loading…
x
Reference in New Issue
Block a user