1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00

Merge pull request #40 from NixOS/travis-ci

This commit is contained in:
Yegor Timoshenko 2017-12-25 20:27:25 +03:00 committed by GitHub
commit 7dbceec472
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 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

@ -1,18 +1,15 @@
#!/bin/sh #!/bin/sh
cd $(dirname $0)/.. set -e
find=(find . -name default.nix) cd "$(dirname "$0")/.."
for profile in `${find[@]}`; do for profile in $(find . -name default.nix); 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
exit 1
fi
done done