forked from carlos-verdes/zio-arangodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.16 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
49
# Makefile
MAKEFLAGS += -j2
-include .env
export
CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
CURRENT_PATH := $(shell pwd)
DEFAULT_BRANCH := $(shell git remote show upstream | sed -n '/HEAD branch/s/.*: //p')
AMM := ${HOME}/amm
.PHONY: gitRebase
gitRebase:
git checkout $(DEFAULT_BRANCH) && \
git pull upstream $(DEFAULT_BRANCH) && \
git push origin $(DEFAULT_BRANCH) && \
git checkout $(CURRENT_BRANCH) && \
git rebase $(DEFAULT_BRANCH)
.PHONY: gitAmmend
gitAmmend:
git add . && git commit --amend --no-edit && git push --force origin $(CURRENT_BRANCH)
.PHONY: killJava
killJava:
ps ax | grep java | grep -v 'grep' | cut -d '?' -f1 | xargs kill -9
.PHONY: amm
amm:
ifeq ("$(wildcard $(AMM))", "")
@echo "Installing ammonite $(AMM)"
sudo sh -c '(echo "#!/usr/bin/env sh" && \
curl -L https://github.com/lihaoyi/Ammonite/releases/download/2.3.8/2.13-2.3.8) \
> $(AMM) && \
chmod +x $(AMM)'
endif
$(AMM)
.PHONY: run
run:
sbt arangodbhttp/run
.PHONY: dependencyTree
dependencyTree:
sbt dependencyBrowseTree
.PHONY: startDockerArango
startDockerArango:
docker run -e ARANGO_ROOT_PASSWORD="testPassword" -p8529:8529 -d --name arangodb arangodb