forked from tweag/jupyenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (22 loc) · 950 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.DEFAULT_GOAL := help
################################################################################
# Test
test-build: ## Build base kernels and prints JupyterLab version.
nix-shell --pure tests -A shell --command 'jupyter --version'
.PHONY: test-build
test-docker: ## Build Docker image with base kernels.
nix-build tests -A docker
.PHONY: test-docker
test-examples-build: ## Build environments for examples.
tests/run.py
.PHONY: test-examples-build
################################################################################
# Cachix
cachix: ## Upload the base kernels to Cachix.
nix-build tests -A build | cachix push jupyterwith
.PHONY: cachix
################################################################################
# Help
help: ## Print the list of commands.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help