-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (37 loc) · 1.24 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: stow
stow:
stow --restow -v --target ~ files
.PHONY: install-all-packages
install-all-packages: install-fast-packages install-slow-packages
.PHONY: install-fast-packages
install-fast-packages:
./scripts/install-fast-packages.sh
.PHONY: install-slow-packages
install-slow-packages:
./scripts/install-slow-packages.sh
.PHONY: lint
lint:
# envrc is used here to set env vars such that pre-commit is on the PATH
BASH_ENV="${HOME}/envrc" ./test/run-precommit-on-all-files.sh
.PHONY: test
test: lint
./test/test-install-slow-packages.zsh
.PHONY: test-in-docker
test-in-docker: docker-build
docker run --rm -it dotfiles make test
.PHONY: stow-uninstall
stow-uninstall:
stow --delete -v files
.PHONY: docker-build
docker-build:
DOCKER_BUILDKIT=1 docker build --tag dotfiles --cache-from topher200/dotfiles:buildcache --build-arg BUILDKIT_INLINE_CACHE=1 .
.PHONY: docker-build-no-cache
docker-build-no-cache:
DOCKER_BUILDKIT=1 docker build --tag dotfiles --cache-from topher200/dotfiles:buildcache --build-arg BUILDKIT_INLINE_CACHE=1 --no-cache .
.PHONY: docker-push
docker-push:
docker tag dotfiles topher200/dotfiles:buildcache
docker push topher200/dotfiles:buildcache
.PHONY: docker-repl
docker-repl: docker-build
docker run --rm -it dotfiles zsh