move ci/ to test/
This commit is contained in:
parent
eaf98f92db
commit
0fd3be5343
4 changed files with 3 additions and 3 deletions
29
test/ci/build.sh
Executable file
29
test/ci/build.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
||||
|
||||
scenario=${scenario:-}
|
||||
|
||||
if [[ -v CIRRUS_CI && $scenario ]]; 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))"
|
||||
|
||||
if [[ $scenario ]]; then
|
||||
testArgs="--scenario $scenario"
|
||||
else
|
||||
testArgs=pkgsUnstable
|
||||
fi
|
||||
|
||||
"${BASH_SOURCE[0]%/*}/../run-tests.sh" --ci --scenario $scenario
|
||||
Loading…
Add table
Add a link
Reference in a new issue