1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

add Travis CI to the repo

This commit is contained in:
zimbatm 2017-12-25 15:07:07 +00:00 committed by Yegor Timoshenko
parent 571bea15a4
commit 83890749b2
No known key found for this signature in database
GPG key ID: C34BF9DCC9DF8210
2 changed files with 8 additions and 4 deletions

3
.travis.yml Normal file
View file

@ -0,0 +1,3 @@
language: nix
sudo: true # needed by the nix install
script: ./tests/eval-test.sh

View file

@ -7,10 +7,11 @@ find=(find . -name default.nix)
for profile in `${find[@]}`; do
echo evaluating $profile >&2
nixos-rebuild \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
dry-build
nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
-A system \
--dry-run
if [ $? -ne 0 ]; then
exit 1