chore: don't strip binaries (for debugging)

This commit is contained in:
Gregor Kleen 2020-08-24 15:58:10 +02:00
parent 9e9e53e76a
commit 447c710d4e
8 changed files with 11 additions and 8 deletions

View File

@ -88,7 +88,7 @@ yesod:build:dev:
stage: yesod:build
script:
- stack build --test --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic
- stack build --test --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic --no-strip
needs:
- frontend:build
before_script: &haskell
@ -120,7 +120,7 @@ yesod:build:
stage: yesod:build
script:
- stack build --test --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic
- stack build --test --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip
needs:
- frontend:build
before_script: *haskell

View File

@ -5,5 +5,5 @@ set -e
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
echo "Building..."
stack build --fast --flag uniworx:-library-only --flag uniworx:dev $@
stack build --fast --flag uniworx:-library-only --flag uniworx:dev --no-strip $@
echo "Done."

2
db.sh
View File

@ -5,7 +5,7 @@ set -e
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
stack build --fast --flag uniworx:-library-only --flag uniworx:dev
stack build --fast --flag uniworx:-library-only --flag uniworx:dev --no-strip
export SERVER_SESSION_ACID_FALLBACK=${SERVER_SESSION_ACID_FALLBACK:-true}
stack exec uniworxdb -- $@

View File

@ -15,4 +15,4 @@ if [[ -d .stack-work-doc ]]; then
trap move-back EXIT
fi
stack build --fast --flag uniworx:library-only --flag uniworx:dev --haddock --haddock-hyperlink-source --haddock-deps --haddock-internal ${@}
stack build --fast --flag uniworx:library-only --flag uniworx:dev --haddock --haddock-hyperlink-source --haddock-deps --haddock-internal --no-strip ${@}

View File

@ -4,4 +4,4 @@ set -e
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
exec -- stack build --test --fast --flag uniworx:dev --flag uniworx:library-only uniworx:test:hlint
exec -- stack build --test --fast --flag uniworx:dev --flag uniworx:library-only --no-strip uniworx:test:hlint

View File

@ -5,6 +5,6 @@ set -e
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
stack build --fast --flag uniworx:-library-only --flag uniworx:dev
stack build --fast --flag uniworx:-library-only --flag uniworx:dev --no-strip
stack exec uniworxload -- $@

View File

@ -69,3 +69,6 @@ extra-deps:
resolver: nightly-2020-08-08
compiler: ghc-8.10.2
allow-newer: true
ghc-options:
"$everything": -g

View File

@ -17,4 +17,4 @@ if [[ -d .stack-work-test ]]; then
trap move-back EXIT
fi
stack build --test --coverage --fast --flag uniworx:dev --flag uniworx:library-only ${@}
stack build --test --coverage --fast --flag uniworx:dev --flag uniworx:library-only --no-strip ${@}