forked from lfe-deprecated/lfetool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 996 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
36
37
38
39
40
41
42
43
44
45
TEST_PROJ=my-new-service
get-version:
@echo "Version info:\n"
@echo "\t./bin/create-tool:\t" `grep 'version=' ./bin/create-tool | \
head -1|awk -F= '{print $$2}'`
@echo "\t./test/tests.sh:\t" `grep expectedversion test/tests.sh|head -1| \
awk -F= '{print $$2}'|sed -e 's/"//g'`
@echo "\tBuilt lfetool:\t\t" `./lfetool -v`
@echo "\tLatest tag:\t\t" `git tag|tail -1`
@echo
build-no-version:
@echo "Building lfetool ..."
@./bin/create-tool
build: get-version build-no-version
@echo "Finished."
push-all:
@echo "Pushing code to github ..."
git push origin --all
git push upstream --all
git push origin --tags
git push upstream --tags
test-proj:
rm -rf $(TEST_PROJ)
make build
./lfetool new service $(TEST_PROJ)
test-proj-shell: test-proj
cd $(TEST_PROJ) && make shell-no-deps
test-proj-run: test-proj
cd $(TEST_PROJ) && make run
check: build
@bash test/tests.sh
./lfetool -x
@bash test/tests.sh
git checkout lfetool
travis-check:
@TRAVIS=true bash test/tests.sh