xref: /freebsd/.cirrus.yml (revision 19261079b74319502c6ffa1249920079f0f69a72)
1# $FreeBSD$
2
3compute_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-0-release-amd64
9  cpu: 8
10  memory: 8G
11  disk: 40
12
13task:
14  name: World and kernel amd64 build and boot smoke test
15  timeout_in: 120m
16  install_script:
17  - sh .cirrus-ci/pkg-install.sh qemu llvm12
18  setup_script:
19  - uname -a
20  - df -m
21  - pkg --version
22  - pw useradd user
23  - mkdir -p /usr/obj/$(pwd -P)
24  - chown user:user /usr/obj/$(pwd -P)
25  script:
26  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
27  package_script:
28  - su user -c "make CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
29  test_script:
30  - sh tools/boot/ci-qemu-test.sh
31  post_script:
32  - df -m
33  - du -m -s /usr/obj
34