26a53f0d59
Remove obsolete features that were required for pkgsUnstable.
22 lines
545 B
Bash
Executable File
22 lines
545 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script can also be run locally for testing:
|
|
# scenario=default ./build.sh
|
|
#
|
|
# When variable CIRRUS_CI is unset, this script leaves no persistent traces on the host system.
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ -v CIRRUS_CI ]]; then
|
|
if [[ ! -e /dev/kvm ]]; then
|
|
>&2 echo "No KVM available on VM host."
|
|
exit 1
|
|
fi
|
|
# Enable KVM access for nixbld users
|
|
chmod o+rw /dev/kvm
|
|
fi
|
|
|
|
echo "$NIX_PATH ($(nix eval --raw nixpkgs.lib.version))"
|
|
|
|
"${BASH_SOURCE[0]%/*}/../run-tests.sh" --ci --scenario $scenario
|