Add makefile command to make intake-sources available
This commit is contained in:
parent
f2ab5ac6d5
commit
27eb3cb211
5
Makefile
5
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: help serve test-data demo
|
.PHONY: help serve test-data intake-sources demo
|
||||||
|
|
||||||
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
@ -15,5 +15,8 @@ serve: ## Run "intake serve" with live reload
|
|||||||
test-data: ## Recreate test data in tmp/
|
test-data: ## Recreate test data in tmp/
|
||||||
@test/test_items.sh
|
@test/test_items.sh
|
||||||
|
|
||||||
|
intake-sources: ## Nix build intake-sources into tmp/
|
||||||
|
@nix build git+https://git.alogoulogoi.com/Jaculabilis/intake-sources.git#default --out-link ${ROOT_DIR}/tmp/intake-sources
|
||||||
|
|
||||||
demo: ## Run the demo vm
|
demo: ## Run the demo vm
|
||||||
@nix run ".#nixosConfigurations.demo.config.system.build.nixos-shell"
|
@nix run ".#nixosConfigurations.demo.config.system.build.nixos-shell"
|
||||||
|
@ -46,8 +46,7 @@ func sourceTest(env []string, format string, timeout string, cmd []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
items, state, _, err := core.Execute("test", cmd, env, nil, "", duration)
|
items, state, _, err := core.Execute("test", cmd, env, nil, "", duration)
|
||||||
log.Printf("returned %d items", len(items))
|
log.Printf("returned %d items, %d bytes of state", len(items), len(state))
|
||||||
log.Printf("wrote %d bytes of state", len(state))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user