diff options
author | zimbatm <zimbatm@zimbatm.com> | 2017-12-25 15:07:07 +0000 |
---|---|---|
committer | Yegor Timoshenko <yegortimoshenko@gmail.com> | 2017-12-25 17:21:35 +0000 |
commit | 83890749b29b56bf294ba5f088b3c179e269e7a1 (patch) | |
tree | 0dee02cd6d2dbf558f877e94874a9b665452aa4f | |
parent | 571bea15a4fbc8a89990a3dfe0156c21713505ad (diff) |
add Travis CI to the repo
-rw-r--r-- | .travis.yml | 3 | ||||
-rwxr-xr-x | tests/eval-test.sh | 9 |
2 files changed, 8 insertions, 4 deletions
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 '<nixpkgs/nixos>' \ + -I nixos-config=tests/eval-test.nix \ + -I nixos-hardware-profile=$profile \ + -A system \ + --dry-run if [ $? -ne 0 ]; then exit 1 |