ci: simplify test

Remove obsolete features that were required for pkgsUnstable.
This commit is contained in:
Erik Arvstedt 2021-12-10 14:07:56 +01:00
parent 0fd3be5343
commit 26a53f0d59
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 7 additions and 19 deletions

View File

@ -16,22 +16,18 @@ task:
timeout_in: 120m
name: modules_test
environment:
nixpkgs: nixpkgs
container:
# A maximum of 16 CPUs is shared among all concurrent tasks.
# https://cirrus-ci.org/faq/#are-there-any-limits
cpu: 4
environment:
matrix:
- environment:
scenario: default
- environment:
scenario: netns
- environment:
scenario: netnsRegtest
- 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)"
- 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

View File

@ -7,9 +7,7 @@
set -euo pipefail
scenario=${scenario:-}
if [[ -v CIRRUS_CI && $scenario ]]; then
if [[ -v CIRRUS_CI ]]; then
if [[ ! -e /dev/kvm ]]; then
>&2 echo "No KVM available on VM host."
exit 1
@ -20,10 +18,4 @@ fi
echo "$NIX_PATH ($(nix eval --raw nixpkgs.lib.version))"
if [[ $scenario ]]; then
testArgs="--scenario $scenario"
else
testArgs=pkgsUnstable
fi
"${BASH_SOURCE[0]%/*}/../run-tests.sh" --ci --scenario $scenario