mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
add Travis CI to the repo
This commit is contained in:
parent
571bea15a4
commit
83890749b2
2 changed files with 8 additions and 4 deletions
3
.travis.yml
Normal file
3
.travis.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
language: nix
|
||||||
|
sudo: true # needed by the nix install
|
||||||
|
script: ./tests/eval-test.sh
|
|
@ -7,10 +7,11 @@ find=(find . -name default.nix)
|
||||||
for profile in `${find[@]}`; do
|
for profile in `${find[@]}`; do
|
||||||
echo evaluating $profile >&2
|
echo evaluating $profile >&2
|
||||||
|
|
||||||
nixos-rebuild \
|
nix-build '<nixpkgs/nixos>' \
|
||||||
-I nixos-config=tests/eval-test.nix \
|
-I nixos-config=tests/eval-test.nix \
|
||||||
-I nixos-hardware-profile=$profile \
|
-I nixos-hardware-profile=$profile \
|
||||||
dry-build
|
-A system \
|
||||||
|
--dry-run
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue