mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Merge pull request #40 from NixOS/travis-ci
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
@@ -1,18 +1,15 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
cd $(dirname $0)/..
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
find=(find . -name default.nix)
 | 
			
		||||
cd "$(dirname "$0")/.."
 | 
			
		||||
 | 
			
		||||
for profile in `${find[@]}`; do
 | 
			
		||||
    echo evaluating $profile >&2
 | 
			
		||||
for profile in $(find . -name default.nix); do
 | 
			
		||||
  echo evaluating $profile >&2
 | 
			
		||||
 | 
			
		||||
    nixos-rebuild \
 | 
			
		||||
	-I nixos-config=tests/eval-test.nix \
 | 
			
		||||
	-I nixos-hardware-profile=$profile \
 | 
			
		||||
	dry-build
 | 
			
		||||
 | 
			
		||||
    if [ $? -ne 0 ]; then
 | 
			
		||||
	exit 1
 | 
			
		||||
    fi
 | 
			
		||||
  nix-build '<nixpkgs/nixos>' \
 | 
			
		||||
    -I nixos-config=tests/eval-test.nix \
 | 
			
		||||
    -I nixos-hardware-profile=$profile \
 | 
			
		||||
    -A system \
 | 
			
		||||
    --dry-run
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user