-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
69 lines (49 loc) · 1.67 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
RELEASE := 'v24.11.1'
# RELEASESEM := 'v1.6.2'
all: format lint build
# -v graphsense-spark-temp-volume:/tmp/spark:z
RUNTRANSFORM=sh -c '\
docker run --rm \
-e RAW_KEYSPACE=$$1_raw_dev \
-e TGT_KEYSPACE=$$1_transformed_dev \
-e NETWORK=$$1 \
-p 4040:4040 \
--network="host" \
graphsense-spark ./submit.sh' RUNTRANSFORM
test:
sbt test
test-account:
sbt Test/compile "testOnly org.graphsense.account.*"
sbt Test/compile "testOnly org.graphsense.common.*"
test-utxo:
sbt Test/compile "testOnly org.graphsense.utxo.*"
sbt Test/compile "testOnly org.graphsense.common.*"
test-common:
sbt Test/compile "testOnly org.graphsense.common.*"
format:
sbt scalafmt
lint:
sbt compile
sbt scalafix
build:
sbt package
build-fat:
sbt assembly
build-docker:
docker build . -t graphsense-spark
run-docker-eth-transform-local: build-docker
${RUNTRANSFORM} eth
run-docker-ltc-transform-local: build-docker
${RUNTRANSFORM} ltc
run-docker-btc-transform-local: build-docker
${RUNTRANSFORM} btc
run-docker-zec-transform-local: build-docker
${RUNTRANSFORM} zec
run-docker-bch-transform-local: build-docker
${RUNTRANSFORM} bch
run-docker-trx-transform-local: build-docker
${RUNTRANSFORM} trx
tag-version:
#-git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
.PHONY: all test lint format build tag-version start-local-cassandra stop-local-cassandra run-local-transform build-docker test-account test-utxo test-common