]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - .cirrus.yml
ldns: Upgrade to 1.8.3.
[FreeBSD/FreeBSD.git] / .cirrus.yml
1 # $FreeBSD$
2
3 compute_engine_instance:
4   # Image list available via
5   # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
6   platform: freebsd
7   image_project: freebsd-org-cloud-dev
8   image: freebsd-13-2-release-amd64
9   cpu: 8
10   memory: 8G
11   disk: 40
12
13 env:
14   PKG_FORMAT: tar
15
16 task:
17   matrix:
18   - name: World and kernel amd64 build and boot smoke test
19     env:
20       TARGET: amd64
21       TARGET_ARCH: amd64
22       TOOLCHAIN: llvm15
23       TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
24   - name: World and kernel arm64 build and boot smoke test
25     only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
26     trigger_type: manual
27     env:
28       TARGET: arm64
29       TARGET_ARCH: aarch64
30       TOOLCHAIN: llvm15
31       TOOLCHAIN_PKG: ${TOOLCHAIN}
32   - name: World and kernel gcc12 amd64 build and boot smoke test (manual)
33     only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
34     trigger_type: manual
35     env:
36       TARGET: amd64
37       TARGET_ARCH: amd64
38       TOOLCHAIN: amd64-gcc12
39       TOOLCHAIN_PKG: ${TOOLCHAIN}
40   - name: World and kernel gcc12 amd64 build and boot smoke test (FreeBSD repo)
41     only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src'
42     env:
43       TARGET: amd64
44       TARGET_ARCH: amd64
45       TOOLCHAIN: amd64-gcc12
46       TOOLCHAIN_PKG: ${TOOLCHAIN}
47   timeout_in: 120m
48   install_script:
49   - sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite
50
51   setup_script:
52   - uname -a
53   - gpart show
54   - df -m
55   - pkg --version
56   - pw useradd user
57   - mkdir -p /usr/obj/$(pwd -P)
58   - chown user:user /usr/obj/$(pwd -P)
59
60   script:
61   - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
62
63   package_script:
64   - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"
65
66   package_check_script:
67   - su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG"
68
69   test_script:
70   - sh .cirrus-ci/pkg-install.sh qemu-nox11
71   - sh tools/boot/ci-qemu-test.sh
72
73   make_sysent_script:
74   # Check that make sysent results were committed if required
75   - make sysent
76   - if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi
77
78   include_ldirs_script:
79   # Check that includes/Makefile refers to existing directories
80   - if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi
81
82   makeman_script:
83   # Check that the committed src.conf.5 matches the one generated by
84   # tools/build/options/makeman (modulo the date which always updates)
85   # XXX: This script is slow so keep it last
86   - (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out
87   - if ! git diff --exit-code --ignore-matching-lines "^.Dd" share/man/man5/src.conf.5; then printf "\n>>> src.conf.5 was not updated as required <<<\n"; false; fi
88   - if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi
89
90   post_script:
91   - df -m
92   - du -m -s /usr/obj