Skip to content

Commit

Permalink
Makefile: add test-install target
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored and rycee committed Oct 31, 2021
1 parent 3ccddfc commit abe12a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.PHONY: all all-tests test format
.PHONY: all all-tests test test-install format
NIXPKGS_REV := nixpkgs-unstable
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz

all: all-tests
all: all-tests test-install

all-tests:
$(MAKE) test TEST=all
Expand All @@ -13,5 +13,8 @@ ifndef TEST
endif
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

0 comments on commit abe12a4

Please sign in to comment.