forked from pure-fish/pure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (35 loc) · 877 Bytes
/
makefile
File metadata and controls
40 lines (35 loc) · 877 Bytes
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
#!/usr/bin/make -sf
# force use of Bash
SHELL := /bin/bash
INTERACTIVE=true
.PHONY: default
default: usage
usage:
@printf "usage:"
@printf "\tmake build-pure-on FISH_VERSION=3.0.0\t# build container\n"
@printf "\tmake test-pure-on FISH_VERSION=3.0.0\t# run tests\n"
@printf "\tmake dev-pure-on FISH_VERSION=3.0.0\t# dev in container\n"
.PHONY: build-pure-on
build-pure-on:
docker build \
--file ./tools/pure-on-fish.Dockerfile \
--build-arg FISH_VERSION=${FISH_VERSION} \
--tag=pure-on-fish-${FISH_VERSION} \
./
.PHONY: test-pure-on
test-pure-on:
docker run \
--name test-pure-on-${FISH_VERSION} \
--rm \
--interactive \
--tty \
pure-on-fish-${FISH_VERSION}
.PHONY: dev-pure-on
dev-pure-on:
docker run \
--name run-pure-on-${FISH_VERSION} \
--rm \
--interactive \
--tty \
--volume=$$(pwd):/tmp/.pure/ \
pure-on-fish-${FISH_VERSION}