Skip to content

Commit

Permalink
only use ‘-Werror’ on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Dec 23, 2015
1 parent 2937d60 commit da70244
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ install:

script:
- case "$CABALVER" in
"1.16") cabal configure --enable-tests -v2 ;;
"1.18") cabal configure --enable-tests --enable-library-coverage -v2 ;;
*) cabal configure --enable-tests --enable-coverage -v2 ;;
"1.16") cabal configure --enable-tests -v2 -f dev ;;
"1.18") cabal configure --enable-tests --enable-library-coverage -v2 -f dev ;;
*) cabal configure --enable-tests --enable-coverage -v2 -f dev ;;
esac
- cabal build
- cabal test --show-details=always
Expand Down
15 changes: 13 additions & 2 deletions htaglib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ extra-source-files: CHANGELOG.md
, audio-samples/sample.flac
, audio-samples/sample.mp3

flag dev
description: Turn development settings.
manual: True
default: False

library
build-depends: base >= 4.6 && < 5
, bytestring >= 0.9
Expand All @@ -60,14 +65,20 @@ library
, Sound.HTagLib.Getter
, Sound.HTagLib.Setter
other-modules: Sound.HTagLib.Internal
ghc-options: -O2 -Wall -Werror
if flag(dev)
ghc-options: -O2 -Wall
else
ghc-options: -O2 -Wall -Werror
default-language: Haskell2010

test-suite tests
main-is: Main.hs
hs-source-dirs: tests
type: exitcode-stdio-1.0
ghc-options: -O2 -Wall -Werror
if flag(dev)
ghc-options: -O2 -Wall -Werror
else
ghc-options: -O2 -Wall
other-modules: Getter
, Setter
, Util
Expand Down

0 comments on commit da70244

Please sign in to comment.