mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-12 04:08:30 +01:00
Un-cached builds cannot succeed without exhausting memory. Doing fewer packages concurrently can sometimes resolve this. This is trial and error. https://app.circleci.com/jobs/github/thoughtbot/yesod-auth-oauth2/1022
39 lines
803 B
Makefile
39 lines
803 B
Makefile
all: setup setup.lint dependencies build test lint
|
|
|
|
.PHONY: setup
|
|
setup:
|
|
stack setup $(STACK_ARGUMENTS)
|
|
|
|
.PHONY: setup.lint
|
|
setup.lint:
|
|
stack install $(STACK_ARGUMENTS) --copy-compiler-tool hlint weeder
|
|
|
|
.PHONY: dependencies
|
|
dependencies:
|
|
stack build $(STACK_ARGUMENTS) -j 1 Cabal haskell-src-exts
|
|
stack build $(STACK_ARGUMENTS) \
|
|
--flag yesod-auth-oauth2:example \
|
|
--dependencies-only --test --no-run-tests
|
|
|
|
.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
|