.cirrus.yml: refactor

Required by the following commit.
This commit is contained in:
Erik Arvstedt 2021-12-10 14:07:57 +01:00
parent 26a53f0d59
commit d3c8d7bd6f
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -1,33 +1,31 @@
container:
image: nixos/nix
# Besides virtualization, this also enables privileged containers which are required for
# sandboxed builds
kvm: true
# Needed for package builds
memory: 8G
environment:
CACHIX_SIGNING_KEY: ENCRYPTED[!cec502ed813cbcd0237697d2031f750186ff20eed5815b1ad950ad2f2d701702ae6ba2f0cb4cb1985687a696c8ee492c!]
# Save some traffic by excluding the full git history
CIRRUS_CLONE_DEPTH: 1
task: task:
environment:
CACHIX_SIGNING_KEY: ENCRYPTED[!cec502ed813cbcd0237697d2031f750186ff20eed5815b1ad950ad2f2d701702ae6ba2f0cb4cb1985687a696c8ee492c!]
# Save some traffic by excluding the full git history
CIRRUS_CLONE_DEPTH: 1
# Use the maximum timeout. Needed when rebuilding packages on a channel update. # Use the maximum timeout. Needed when rebuilding packages on a channel update.
timeout_in: 120m timeout_in: 120m
name: modules_test matrix:
container: - name: modules_test
# A maximum of 16 CPUs is shared among all concurrent tasks. container:
# https://cirrus-ci.org/faq/#are-there-any-limits image: nixos/nix
cpu: 4 # Besides virtualization, this also enables privileged containers which are required for
environment: # sandboxed builds
matrix: kvm: true
- scenario: default # Needed for package builds
- scenario: netns memory: 8G
- scenario: netnsRegtest # A maximum of 16 CPUs is shared among all concurrent tasks.
# https://cirrus-ci.org/faq/#are-there-any-limits
# This script is run as root cpu: 4
build_script: environment:
- echo "sandbox = true" >> /etc/nix/nix.conf matrix:
- export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs)" - scenario: default
- nix run -f '<nixpkgs>' bash coreutils cachix -c ./test/ci/build.sh - 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