mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
Makefile: add test-install target
This commit is contained in:
parent
3ccddfc48d
commit
abe12a4bad
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -1,8 +1,8 @@
|
||||||
.PHONY: all all-tests test format
|
.PHONY: all all-tests test test-install format
|
||||||
NIXPKGS_REV := nixpkgs-unstable
|
NIXPKGS_REV := nixpkgs-unstable
|
||||||
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz
|
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz
|
||||||
|
|
||||||
all: all-tests
|
all: all-tests test-install
|
||||||
|
|
||||||
all-tests:
|
all-tests:
|
||||||
$(MAKE) test TEST=all
|
$(MAKE) test TEST=all
|
||||||
|
@ -13,5 +13,8 @@ ifndef TEST
|
||||||
endif
|
endif
|
||||||
nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}
|
nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}
|
||||||
|
|
||||||
|
test-install:
|
||||||
|
HOME=$(shell mktemp -d) NIX_PATH=${NIX_PATH} nix-shell . -A install
|
||||||
|
|
||||||
format:
|
format:
|
||||||
./format
|
./format
|
||||||
|
|
Loading…
Reference in a new issue