on master help sign in
Try to make tests and dev builds run faster
commit0746304219dfec9e10500614d15f5360d0d4b960 authorEvan Czaplicki <info@elm-lang.org> dateMon 18 Apr 2016, 14:34 (11 years ago) parentcd8eb70
2 files changed+12−4
.travis.yml+1−1 elm-compiler.cabal+11−3
.travis.yml+1−1
@@ -21,6 +21,6 @@ install:
2121
2222
2323script:
24− - cabal configure --enable-tests
24+ - cabal configure --enable-tests -fdev
2525 - cabal build
2626 - cabal test
elm-compiler.cabal+11−3
@@ -31,9 +31,18 @@ source-repository head
3131 type: git
3232 location: git://github.com/elm-lang/elm-compiler.git
3333
34+
35+Flag dev {
36+ Description: Turn off optimization to make builds quicker
37+ Default: False
38+}
39+
40+
3441Library
35− ghc-options:
36− -O2 -W
42+ if flag(dev)
43+ ghc-options: -O0 -W
44+ else
45+ ghc-options: -O2
3746
3847 Hs-Source-Dirs:
3948 src
@@ -210,7 +219,6 @@ Test-Suite compiler-tests
210219 containers >= 0.3 && < 0.6,
211220 directory >= 1.0 && < 2.0,
212221 edit-distance >= 0.2 && < 0.3,
213− elm-compiler,
214222 filemanip >= 0.3.5 && < 0.4,
215223 filepath >= 1 && < 2.0,
216224 indents >= 0.3 && < 0.4,