yesod-auth-oauth2/Makefile
patrick brisbin a8687be4f0 Build haskell-src-exts single-threaded first
Letting all dependencies build at once can lead to out of memory on CI.
2018-09-11 08:00:30 -04:00

34 lines
765 B
Makefile

all: setup build test lint
.PHONY: setup
setup:
stack setup $(STACK_ARGUMENTS)
# Avoid ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)
stack build $(STACK_ARGUMENTS) -j 1 haskell-src-exts
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--dependencies-only --test --no-run-tests
stack install $(STACK_ARGUMENTS) --copy-compiler-tool hlint weeder
.PHONY: build
build:
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--pedantic --test --no-run-tests
.PHONY: test
test:
stack build $(STACK_ARGUMENTS) \
--flag yesod-auth-oauth2:example \
--pedantic --test
.PHONY: lint
lint:
stack exec $(STACK_ARGUMENTS) hlint src test
stack exec $(STACK_ARGUMENTS) weeder .
.PHONY: clean
clean:
stack clean