From 83890749b29b56bf294ba5f088b3c179e269e7a1 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 25 Dec 2017 15:07:07 +0000 Subject: [PATCH] add Travis CI to the repo --- .travis.yml | 3 +++ tests/eval-test.sh | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3471081 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: nix +sudo: true # needed by the nix install +script: ./tests/eval-test.sh diff --git a/tests/eval-test.sh b/tests/eval-test.sh index 00970b7..5be9103 100755 --- a/tests/eval-test.sh +++ b/tests/eval-test.sh @@ -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 '' \ + -I nixos-config=tests/eval-test.nix \ + -I nixos-hardware-profile=$profile \ + -A system \ + --dry-run if [ $? -ne 0 ]; then exit 1