2020-12-02 11:09:08 -08:00
|
|
|
task:
|
2021-12-10 05:07:57 -08:00
|
|
|
environment:
|
|
|
|
CACHIX_SIGNING_KEY: ENCRYPTED[!cec502ed813cbcd0237697d2031f750186ff20eed5815b1ad950ad2f2d701702ae6ba2f0cb4cb1985687a696c8ee492c!]
|
|
|
|
# Save some traffic by excluding the full git history
|
|
|
|
CIRRUS_CLONE_DEPTH: 1
|
|
|
|
|
2020-12-02 11:09:08 -08:00
|
|
|
# Use the maximum timeout. Needed when rebuilding packages on a channel update.
|
|
|
|
timeout_in: 120m
|
|
|
|
|
2021-12-10 05:07:57 -08:00
|
|
|
matrix:
|
|
|
|
- name: modules_test
|
|
|
|
container:
|
2021-12-15 05:54:54 -08:00
|
|
|
# Use Nix release 2.3.x, the default on NixOS stable
|
|
|
|
image: nixos/nix:2.3.12
|
2021-12-10 05:07:57 -08:00
|
|
|
# Besides virtualization, this also enables privileged containers which are required for
|
|
|
|
# sandboxed builds
|
|
|
|
kvm: true
|
|
|
|
# Needed for package builds
|
|
|
|
memory: 8G
|
|
|
|
# A maximum of 16 CPUs is shared among all concurrent tasks.
|
|
|
|
# https://cirrus-ci.org/faq/#are-there-any-limits
|
|
|
|
cpu: 4
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- scenario: default
|
|
|
|
- scenario: netns
|
|
|
|
- scenario: netnsRegtest
|
|
|
|
# This script is run as root
|
|
|
|
build_script:
|
|
|
|
- echo "sandbox = true" >> /etc/nix/nix.conf
|
|
|
|
- export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs)"
|
|
|
|
- nix run -f '<nixpkgs>' bash coreutils cachix -c ./test/ci/build.sh
|
2021-12-10 05:07:58 -08:00
|
|
|
|
|
|
|
- name: flake
|
|
|
|
container:
|
|
|
|
image: nixpkgs/nix-flakes
|
|
|
|
build_script:
|
|
|
|
- nix flake check
|
|
|
|
- ./test/nixos-search/ci-test.sh
|