"Fossies" - the Fresh Open Source Software Archive

Member "nsd-4.3.6/.cirrus.yml" (6 Apr 2021, 5290 Bytes) of package /linux/misc/dns/nsd-4.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for ".cirrus.yml": 4.3.5_vs_4.3.6.

    1 # Cirrus CI instructions for building NSD
    2 #
    3 # These build instructions are based on the existing instructions and
    4 # suggestions made by Jeffrey Walton (noloader) about using the Undefined
    5 # Behavior sanitizer (UBSan) and the Address sanitizer (ASan).
    6 #
    7 # For now builds are limited to Linux, FreeBSD and macOS builds on AMD64, more
    8 # may be added in the future.
    9 
   10 ubuntu_1804: &ubuntu_1804
   11   container:
   12     image: ubuntu:bionic
   13   env:
   14     UBUNTU_CODENAME: bionic
   15     COV_COMPTYPE: gcc
   16     COV_PLATFORM: linux64
   17 
   18 ubuntu_1804_gcc9: &ubuntu_1804_gcc9
   19   <<: *ubuntu_1804
   20   env:
   21     CC: gcc-9
   22   bootstrap_script:
   23     - apt-get update
   24     - apt-get install -y gnupg2 ca-certificates wget curl
   25     - |
   26       cat << EOF > /etc/apt/sources.list.d/ubuntu-toolchain-r.list
   27       deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu ${UBUNTU_CODENAME} main
   28       deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu ${UBUNTU_CODENAME} main
   29       EOF
   30     - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
   31     - apt-get update
   32   install_script:
   33     - apt-get install -y autoconf automake make gcc-9 clang libc-dev libevent-dev libssl-dev flex bison
   34 
   35 ubuntu_1804_clang10: &ubuntu_1804_clang10
   36   <<: *ubuntu_1804
   37   env:
   38     CC: clang-10
   39     CLANG_VERSION: 10
   40   bootstrap_script:
   41     - apt-get update
   42     - apt-get install -y gnupg2 ca-certificates wget curl
   43     - |
   44       cat << EOF > /etc/apt/sources.list.d/llvm-toolchain.list
   45       deb http://apt.llvm.org/${UBUNTU_CODENAME} llvm-toolchain-${UBUNTU_CODENAME}-${CLANG_VERSION} main
   46       deb-src http://apt.llvm.org/${UBUNTU_CODENAME} llvm-toolchain-${UBUNTU_CODENAME}-${CLANG_VERSION} main
   47       EOF
   48     - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
   49     - apt-get update
   50   install_script:
   51     - apt-get install -y autoconf automake make clang-${CLANG_VERSION} libc-dev libevent-dev libssl-dev flex bison
   52     - update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 10
   53 
   54 freebsd_12_2: &freebsd_12_2
   55   freebsd_instance:
   56     image_family: freebsd-12-2
   57   env:
   58     CC: clang
   59   install_script:
   60     - pkg update -f
   61     - pkg install -y bash gmake autoconf automake libevent
   62 
   63 macos_1015_xcode11: &macos_1015_xcode11
   64   osx_instance:
   65     image: catalina-xcode-11.3.1
   66   env:
   67     CC: clang
   68     COV_COMPTYPE: clang
   69     COV_COMPTYPE: macOSX
   70   install_script:
   71     - brew install bash autoconf automake libtool libevent openssl flex bison
   72 
   73 install_coverity: &install_coverity
   74   env:
   75     COV_ARC: "$CIRRUS_WORKING_DIR/cov-analysis-$COV_PLATFORM.tgz"
   76     COV_DIR: "$CIRRUS_WORKING_DIR/coverity-scan-analysis"
   77     PATH: "$PATH:$CIRRUS_WORKING_DIR/cov-analysis/bin"
   78   install_coverity_script:
   79     - test ! -d "${COV_DIR}" &&
   80       mkdir -p "${COV_DIR}" &&
   81       curl -s -S -F project="${CIRRUS_REPO_OWNER}/${CIRRUS_REPO_NAME}"
   82                  -F token="${COVERITY_SCAN_TOKEN}"
   83                  -o "${COV_ARC}"
   84                  "https://scan.coverity.com/download/cxx/${COV_PLATFORM}" &&
   85       tar -xzf "${COV_ARC}" -C "${COV_DIR}"
   86     - ln -s $(find "${COV_DIR}" -type d -name "cov-analysis*") cov-analysis
   87 
   88 submit_to_coverity_scan: &submit_to_coverity_scan
   89   submit_to_coverity_scan_script:
   90     - tar -czf analysis-results.tgz cov-int
   91     - curl -s -S -F project="${CIRRUS_REPO_OWNER}/${CIRRUS_REPO_NAME}"
   92                  -F token="${COVERITY_SCAN_TOKEN}"
   93                  -F file=@analysis-results.tgz
   94                  -F version="$(git rev-parse --short HEAD)"
   95                  -F description="Cirrus CI build"
   96                  -F email="${COVERITY_EMAIL:=spam@nlnetlabs.nl}"
   97                  "https://scan.coverity.com/builds"
   98 
   99 env:
  100   COVERITY_EMAIL: ENCRYPTED[effa3340c97e8cf92c0dbb564187d35b6829580cc2577b176d6c6fc9b775745f7130c56f5bd9ab2472f4ae818b6f3791]
  101   COVERITY_SCAN_TOKEN: ENCRYPTED[8f67f850ca3d464ea87fa8dee17bbb0cfb2a991b6f401fd593fe0744eece838e325af438d62ee2d46c4e18a2bd5c873f]
  102 
  103 task:
  104   only_if: $CIRRUS_CRON != ''
  105   name: "Build on Ubuntu 18.04 LTS with GCC 9 (Coverity Scan)"
  106   <<: *ubuntu_1804_gcc9
  107   <<: *install_coverity
  108   build_script:
  109     - autoconf && autoheader
  110     - ./configure --enable-checking --disable-flto
  111     - cov-configure --comptype ${COV_COMPTYPE} --compiler ${CC} --template
  112     - cov-build --dir cov-int make
  113   <<: *submit_to_coverity_scan
  114 
  115 task:
  116   matrix:
  117     - name: "Build and test on Ubuntu 18.04 LTS with GCC 9"
  118       <<: *ubuntu_1804_gcc9
  119     - name: "Build and test on Ubuntu 18.04 LTS with Clang 10 (ASan+UBSan+LSan)"
  120       <<: *ubuntu_1804_clang10
  121       env:
  122         CFLAGS: "-g2 -O0 -fsanitize=address,undefined,leak -fno-sanitize-recover=all"
  123     - name: "Build and test on FreeBSD 12.2 (ASan+UBSan)"
  124       <<: *freebsd_12_2
  125       env:
  126         CFLAGS: "-g2 -O0 -fsanitize=address,undefined -fno-sanitize-recover=all"
  127     - name: "Build and test on macOS 10.15 with Xcode 11.3.1 (ASan+UBSan)"
  128       <<: *macos_1015_xcode11
  129       env:
  130         CFLAGS: "-g2 -O0 -fsanitize=address,undefined -fno-sanitize-recover=all"
  131 
  132   build_script:
  133     - autoconf && autoheader
  134     - ./configure --enable-checking --disable-flto --with-ssl=yes --with-libevent=yes
  135     - make -j 2
  136     - make cutest
  137     - ./cutest
  138     - (cd tpkg/clang-analysis.tdir && bash clang-analysis.test)
  139     - (cd tpkg && ./mini_tdir.sh -a ../.. exe checkconf.tdir)