forked from jwiegley/gitlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (26 loc) · 955 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
TAGS:
find . -name '*.hs' | xargs hasktags -e -o - > TAGS
AGENTS = $(HOME)/Library/LaunchAgents
tests:
if ! ps ax | grep -q '[b]in/redis-server'; then \
launchctl load -w $(AGENTS)/homebrew.mxcl.redis.plist ; \
fi
if ! ps ax | grep -q '[m]ock_s3\.py'; then \
python vendor/mock-s3/mock_s3.py ; \
fi
perl -i -pe 's/^-- //;' gitlib-github/gitlib-github.cabal
for i in cmdline github libgit2 s3 cross ; do \
(echo gitlib-$$i ; cd gitlib-$$i ; \
cabal clean > /dev/null ; \
cabal configure --enable-tests > /dev/null ; \
cabal build > /dev/null && \
echo === $$i === && \
GITHUB_OWNER=$(GITHUB_OWNER) GITHUB_TOKEN=$(GITHUB_TOKEN) \
dist/build/smoke/smoke) ; \
done
for i in test sample ; do \
(echo gitlib-$$i ; cd gitlib-$$i ; \
cabal clean > /dev/null ; \
cabal configure --enable-tests > /dev/null ; \
cabal build) ; \
done