-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
44 lines (35 loc) · 1.02 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
DOCKERNAME=zeroonetechnology/fxl
VERSION=`cat resources/FXL_REPL_RELEASED_VERSION`
build:
cp project.clj docker/project.clj
docker build -f docker/Dockerfile \
-t $(DOCKERNAME):latest \
docker
docker-pull:
docker pull $(DOCKERNAME):$(VERSION)
docker-push: build
docker push $(DOCKERNAME):latest
docker-release: build
cp project.clj docker/project.clj
docker build -f docker/Dockerfile \
-t $(DOCKERNAME):$(VERSION) \
docker
docker push $(DOCKERNAME):$(VERSION)
dock: build
docker run --rm -v $(PWD):/root/fxl -w /root/fxl -it $(DOCKERNAME) \
/bin/bash
repl: build
docker run --rm -v $(PWD):/root/fxl -w /root/fxl -it $(DOCKERNAME) \
lein repl
coverage: build
$(eval TMP := $(shell mktemp -d))
cp -r . $(TMP)
docker run --rm -v $(TMP):/root/fxl -w /root/fxl -t $(DOCKERNAME) \
scripts/coverage
lint-ancient: build
$(eval TMP := $(shell mktemp -d))
cp -r . $(TMP)
docker run --rm -v $(TMP):/root/fxl -w /root/fxl -t $(DOCKERNAME) \
scripts/lint-ancient
ci: coverage lint-ancient
echo "CI steps passed!"