-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
35 lines (26 loc) · 672 Bytes
/
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
doc: doc-site test
@cargo doc
@rm -rf ./doc-site/*
@cp -r ./target/doc/* doc-site
@(cd doc-site && \
git pull && \
git add * && \
git commit -am "[build] `date`" && \
git push )
doc-site:
git clone --depth=1 --single-branch -b gh-pages [email protected]:brianloveswords/hookshot.git doc-site
test: src/test/test_repo
cargo test
release:
cargo build --release
release-fail:
this-does-not-exist
clean:
cargo clean
repack-test-repo:
cd src/test && tar -czf test_repo.tgz test_repo
src/test/test_repo:
cd src/test && tar -xzf test_repo.tgz
test-hook:
env >> env.txt
.PHONY: test docs release