mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-08 10:53:49 +02:00
Tweak make targets and CI steps
This commit is contained in:
parent
d93594bf97
commit
e20891c072
@ -26,14 +26,16 @@ references:
|
|||||||
- v2-{{ .Branch }}-
|
- v2-{{ .Branch }}-
|
||||||
- v2-master-
|
- v2-master-
|
||||||
- run:
|
- run:
|
||||||
name: Dependencies
|
name: Setup
|
||||||
command: |
|
command: |
|
||||||
make setup
|
|
||||||
|
|
||||||
if [ "${LINT:-1}" = 1 ]; then
|
if [ "${LINT:-1}" = 1 ]; then
|
||||||
stack install $STACK_ARGUMENTS \
|
make setup setup.lint
|
||||||
--copy-compiler-tool hlint weeder
|
else
|
||||||
|
make setup
|
||||||
fi
|
fi
|
||||||
|
- run:
|
||||||
|
name: Dependencies
|
||||||
|
command: make dependencies
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: make build
|
command: make build
|
||||||
@ -45,15 +47,16 @@ references:
|
|||||||
- ./.stack-work
|
- ./.stack-work
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: make test
|
|
||||||
- run:
|
|
||||||
name: Lint
|
|
||||||
command: |
|
command: |
|
||||||
if [ "${LINT:-1}" = 1 ]; then
|
if [ "${LINT:-1}" = 1 ]; then
|
||||||
make lint
|
make test lint
|
||||||
|
else
|
||||||
|
make test
|
||||||
fi
|
fi
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
<<: *stack_build
|
||||||
build_8.2.2:
|
build_8.2.2:
|
||||||
<<: *stack_build
|
<<: *stack_build
|
||||||
environment:
|
environment:
|
||||||
@ -64,8 +67,6 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
STACK_ARGUMENTS: --no-terminal
|
STACK_ARGUMENTS: --no-terminal
|
||||||
STACK_YAML: stack-lts-12.2.yaml
|
STACK_YAML: stack-lts-12.2.yaml
|
||||||
build:
|
|
||||||
<<: *stack_build
|
|
||||||
build_nightly:
|
build_nightly:
|
||||||
<<: *stack_build
|
<<: *stack_build
|
||||||
environment:
|
environment:
|
||||||
@ -79,9 +80,9 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
commit:
|
commit:
|
||||||
jobs:
|
jobs:
|
||||||
|
- build
|
||||||
- build_8.2.2
|
- build_8.2.2
|
||||||
- build_8.4.3
|
- build_8.4.3
|
||||||
- build
|
|
||||||
- build_nightly
|
- build_nightly
|
||||||
nightly:
|
nightly:
|
||||||
triggers:
|
triggers:
|
||||||
|
|||||||
11
Makefile
11
Makefile
@ -1,14 +1,19 @@
|
|||||||
all: setup build test lint
|
all: setup setup.lint dependencies build test lint
|
||||||
|
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
setup:
|
setup:
|
||||||
stack setup $(STACK_ARGUMENTS)
|
stack setup $(STACK_ARGUMENTS)
|
||||||
# Avoid ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)
|
|
||||||
|
.PHONY: setup.lint
|
||||||
|
setup.lint:
|
||||||
|
stack install $(STACK_ARGUMENTS) --copy-compiler-tool hlint weeder
|
||||||
|
|
||||||
|
.PHONY: dependencies
|
||||||
|
dependencies:
|
||||||
stack build $(STACK_ARGUMENTS) -j 1 haskell-src-exts
|
stack build $(STACK_ARGUMENTS) -j 1 haskell-src-exts
|
||||||
stack build $(STACK_ARGUMENTS) \
|
stack build $(STACK_ARGUMENTS) \
|
||||||
--flag yesod-auth-oauth2:example \
|
--flag yesod-auth-oauth2:example \
|
||||||
--dependencies-only --test --no-run-tests
|
--dependencies-only --test --no-run-tests
|
||||||
#stack install $(STACK_ARGUMENTS) --copy-compiler-tool hlint weeder
|
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user