stages:
- images
- build
+ - analysis
- report
variables:
# Set this to the contents of bootstrap/sha1sum.txt
# which is generated by bootstrap/template.py --render
#
- SAMBA_CI_CONTAINER_TAG: 7414ad7ef9108d406b1f6b17ebce19e32aee9f70
+ SAMBA_CI_CONTAINER_TAG: b5b78cacae2fa6cec91925170bc6d4e3774cac9b
#
# We use the ubuntu1804 image as default as
# it matches what we have on sn-devel-184.
tags:
- docker
- shared
+ cache:
+ key: ccache.${CI_JOB_NAME}
+ paths:
+ - ccache
before_script:
- uname -a
- lsb_release -a
- echo "${SAMBA_CI_CONTAINER_TAG}" > /tmp/sha1sum-tag.txt
- diff -u bootstrap/sha1sum.txt /tmp/sha1sum-tag.txt
- diff -u bootstrap/sha1sum.txt /sha1sum.txt
+ - export CCACHE_BASEDIR="${PWD}"
+ - export CCACHE_DIR="${PWD}/ccache" && mkdir -pv "$CCACHE_DIR"
+ - export CC="ccache cc"
+ - export CXX="ccache c++"
+ - ccache -z -M 500M
+ - ccache -s
after_script:
- mount
- df -h
- cat /proc/swaps
- free -h
+ - CCACHE_BASEDIR="${PWD}" CCACHE_DIR="${PWD}/ccache" ccache -s -c
artifacts:
expire_in: 1 week
paths:
- script/autobuild.py tdb $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py tevent $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
- script/autobuild.py samba-xc $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
+ - script/autobuild.py docs-xml $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
samba:
extends: .shared_template
samba-ad-dc-4-mitkrb5:
extends: .shared_template
+samba-fips:
+ extends: .shared_template
+ image: $SAMBA_CI_CONTAINER_IMAGE_fedora32
+
.private_template:
extends: .shared_template
tags:
- samba-nt4
- samba-schemaupgrade
- samba-ad-dc-1-mitkrb5
+ - samba-fips
script:
- ./configure.developer
- make -j
variables:
- $SAMBA_CI_AUTOBUILD_ENABLE_COVERAGE == "--enable-coverage"
+# Coverity Scan
+coverity:
+ stage: analysis
+ image: $SAMBA_CI_CONTAINER_IMAGE_fedora32
+ tags:
+ - docker
+ - shared
+ script:
+ - wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O /tmp/coverity_tool.tgz
+ - tar xf /tmp/coverity_tool.tgz
+ - ./configure.developer --with-system-mitkrb5 --with-experimental-mit-ad-dc
+ - cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc)
+ - tar czf cov-int.tar.gz cov-int
+ - curl
+ --form token=$COVERITY_SCAN_TOKEN
+ --form email=$COVERITY_SCAN_EMAIL
+ --form file=@cov-int.tar.gz
+ --form version="`git describe --tags`"
+ --form description="CI build"
+ https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
+ only:
+ refs:
+ - master
+ - schedules
+ variables:
+ - $COVERITY_SCAN_TOKEN != null
+ - $COVERITY_SCAN_PROJECT_NAME != null
+ - $COVERITY_SCAN_EMAIL != null
+ artifacts:
+ expire_in: 1 week
+ when: on_failure
+ paths:
+ - cov-int/*.txt
+
#
# We build samba-o3 on all supported distributions
#
extends: .samba-o3-template
image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1804
-.ubuntu2004-samba-o3:
+ubuntu2004-samba-o3:
extends: .samba-o3-template
image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu2004