@@ -30,8 +30,6 @@ variables:
30
30
#
31
31
GIT_STRATEGY : fetch
32
32
GIT_DEPTH : " 3"
33
- # "--enable-coverage" or ""
34
- SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE : " "
35
33
#
36
34
# we run autobuild.py inside a samba CI docker image located on gitlab's registry
37
35
# overwrite this variable if you want use your own image registry.
@@ -89,7 +87,7 @@ include:
89
87
AUTOBUILD_JOB_NAME : $CI_JOB_NAME
90
88
stage : build
91
89
cache :
92
- key : ccache.${CI_JOB_NAME}.${SAMBA_CI_JOB_IMAGE}
90
+ key : ccache.${CI_JOB_NAME}.${SAMBA_CI_JOB_IMAGE}.${SAMBA_CI_FLAVOR}
93
91
paths :
94
92
- ccache
95
93
before_script :
@@ -191,6 +189,7 @@ others:
191
189
# the acls again.
192
190
- cp -a /sha1sum.txt /tmp/samba-testbase/image-sha1sum.txt
193
191
- cp -a /tmp/commit.txt /tmp/samba-testbase/commit.txt
192
+ - ln -s /tmp/samba-testbase/${AUTOBUILD_JOB_NAME}/ /tmp/samba-testbase/build_subdir_link
194
193
- pushd /tmp && getfacl -R samba-testbase > samba-testbase.acl.dump && popd
195
194
- chmod -R +w /tmp/samba-testbase
196
195
- mv /tmp/samba-testbase.acl.dump /tmp/samba-testbase/
@@ -213,6 +212,11 @@ others:
213
212
- diff -u /tmp/samba-testbase/commit.txt /tmp/commit.txt
214
213
- mv /tmp/samba-testbase/samba-testbase.acl.dump /tmp/samba-testbase.acl.dump
215
214
- pushd /tmp && setfacl --restore=/tmp/samba-testbase.acl.dump && popd
215
+ - ls -la /tmp/samba-testbase/
216
+ - ls -la /tmp/samba-testbase/build_subdir_link
217
+ - ls -la /tmp/samba-testbase/build_subdir_link/
218
+ - if [ -n "$SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE" ]; then find /tmp/samba-testbase/build_subdir_link/ -type d -printf "'%p'\n" | xargs chmod u+w; fi
219
+ - ls -la /tmp/samba-testbase/build_subdir_link/
216
220
# gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
217
221
# autobuild name, which means we can define a default template that runs most autobuild jobs
218
222
- script/autobuild.py $AUTOBUILD_JOB_NAME $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --skip-dependencies --verbose --nocleanup --keeplogs --tail --full-testbase /tmp/samba-testbase
@@ -429,9 +433,12 @@ pages:
429
433
- samba-no-opath1
430
434
- samba-no-opath2
431
435
script :
436
+ - ls -la *.info
432
437
- ./configure.developer
433
438
- make -j
439
+ - ls -la *.info
434
440
- lcov $(ls *.info | xargs -I{} echo -n "-a {} ") -o all.info
441
+ - ls -la *.info
435
442
- genhtml all.info --output-directory public --prefix=$(pwd) --title "coverage report for $CI_COMMIT_REF_NAME $CI_COMMIT_SHORT_SHA"
436
443
artifacts :
437
444
expire_in : 30 days
0 commit comments