bloodhound/Makefile

85 lines
2.3 KiB
Makefile
Raw Normal View History

stack = STACK_YAML='stack.yaml' stack
2016-07-06 23:33:39 +03:00
build:
stack build
2014-04-07 03:29:46 +04:00
2018-02-14 00:47:43 +03:00
build-validate:
stack build --fast --ghc-options '-Wall -Werror'
2018-02-14 00:47:43 +03:00
2018-02-07 06:32:20 +03:00
ghci:
stack ghci
2016-08-21 08:30:16 +03:00
test: echo-warn
2016-07-06 23:33:39 +03:00
stack test
2014-05-03 20:41:46 +04:00
2018-02-07 06:32:20 +03:00
test-rerun: echo-warn
stack test --test-arguments "-r"
test-ghci:
stack ghci bloodhound:test:bloodhound-tests
ghcid:
ghcid -c "$(stack) ghci bloodhound:lib --test --ghci-options='-fobject-code -fno-warn-unused-do-bind' --main-is bloodhound:test:bloodhound-tests"
2018-02-14 00:47:43 +03:00
ghcid-validate:
ghcid -c "$(stack) ghci bloodhound:lib --test --ghci-options='-Werror -fobject-code -fno-warn-unused-do-bind' --main-is bloodhound:test:bloodhound-tests"
weeder:
weeder . --build
# hlint --default > .hlint.yaml
hlint:
hlint .
hlint-watch:
sos src/ -c "hlint ." -p "src/(.*)\.hs"
2018-02-07 06:32:20 +03:00
mod-build:
stack build --ghc-options '+RTS -A128M -RTS'
echo-warn:
2018-04-16 04:58:15 +03:00
@echo "Make certain you have an elasticsearch instance on localhost:9200 !"
2018-02-07 06:32:20 +03:00
2016-08-21 08:30:16 +03:00
7.8-build:
STACK_YAML="stack-7.8.yaml" stack build
7.8-test: echo-warn
STACK_YAML="stack-7.8.yaml" stack test
2017-01-30 21:06:03 +03:00
7.10-build:
2017-04-20 02:34:56 +03:00
STACK_YAML="stack-7.10.yaml" stack build
2016-08-21 08:30:16 +03:00
2017-01-30 21:06:03 +03:00
7.10-test: echo-warn
STACK_YAML="stack-7.10.yaml" stack test
2016-08-21 08:30:16 +03:00
2017-04-20 02:34:56 +03:00
7.10-test-ES1:
2018-03-16 01:46:08 +03:00
STACK_YAML="stack-7.10.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES1
2017-04-20 02:34:56 +03:00
7.10-test-ES5:
2018-03-16 01:46:08 +03:00
STACK_YAML="stack-7.10.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES5
2017-08-04 06:35:32 +03:00
8.0-test-ES1:
2018-03-16 01:46:08 +03:00
STACK_YAML="stack-8.0.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES1
2017-08-04 06:35:32 +03:00
8.0-test-ES5:
2018-03-16 01:46:08 +03:00
STACK_YAML="stack-8.0.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES5
8.2-test-ES1:
2018-04-08 00:20:44 +03:00
STACK_YAML="stack.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES1
2018-03-16 01:46:08 +03:00
8.2-test-ES5:
STACK_YAML="stack.yaml" stack test --fast bloodhound:test:bloodhound-tests --test-arguments="--qc-max-success 500" --flag bloodhound:ES5
2017-04-20 02:34:56 +03:00
2017-05-16 21:07:37 +03:00
8.0-build:
STACK_YAML="stack-8.0.yaml" stack build
8.2-build:
STACK_YAML="stack-8.2.yaml" stack build
module-touch:
touch src/Database/V1/Bloodhound/Types.hs
touch src/Database/V5/Bloodhound/Types.hs
2016-07-06 23:36:19 +03:00
upload:
stack upload --no-signature .