forked from cdecker/lightning-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (49 loc) · 2.04 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
GOPATH = $(shell pwd)/src/lnd
PWD = $(shell pwd)
src/eclair:
git clone https://github.com/ACINQ/eclair.git src/eclair
src/lightning:
git clone https://github.com/ElementsProject/lightning.git src/lightning
src/lnd:
git clone https://github.com/lightningnetwork/lnd ${GOPATH}/src/github.com/lightningnetwork/lnd
update: src/eclair src/lightning src/lnd
rm src/eclair/version src/lightning/version src/lnd/version || true
cd src/eclair && git stash; git pull origin master
cd src/lightning && git stash; git pull origin master
cd ${GOPATH}/src/github.com/lightningnetwork/lnd && git stash; git pull origin master
#cd src/eclair; git apply ${PWD}/src/eclair/*.patch
bin/eclair.jar: src/eclair
(cd src/eclair; git rev-parse HEAD) > src/eclair/version
(cd src/eclair/; mvn package -Dmaven.test.skip=true || true)
cp src/eclair/eclair-node/target/eclair-node-*-$(shell git --git-dir=src/eclair/.git rev-parse HEAD | cut -b 1-7).jar bin/eclair.jar
bin/lightningd: src/lightning
(cd src/lightning; git rev-parse HEAD) > src/lightning/version
cd src/lightning; make
cp src/lightning/lightningd/lightningd src/lightning/lightningd/lightning_* bin
bin/lnd: src/lnd
(cd src/lnd; git rev-parse HEAD) > src/lnd/version
cd ${GOPATH}/src/github.com/lightningnetwork/lnd; glide install; go install . ./cmd/...
cp ${GOPATH}/bin/lnd ${GOPATH}/bin/lncli bin/
clean:
rm src/lnd/version src/lightning/version src/eclair/version || true
rm bin/* || true
cd src/lightning; make clean
cd src/eclair; mvn clean
clients: bin/lightningd bin/lnd bin/eclair.jar
test:
# Failure is always an option
py.test -v test.py --tb=short --color=yes --json=report.json || true
python cli.py postprocess
site:
rm -rf output; rm templates/*.json || true
mkdir output
cp reports/* templates/
python cli.py html
push:
cd output; \
git init;\
git config user.name "Travis CI";\
git config user.email "[email protected]";\
git add .;\
git commit --quiet -m "Deploy to GitHub Pages";\
git push --force "[email protected]:cdecker/lightning-integration.git" master:gh-pages