on master help sign in
Try to make tests and dev builds run faster
0746304Evan Czaplicki
.travis.yml+1−1
@@ -21,6 +21,6 @@ install:
21
21
22
22
23script:
23script:
24− - cabal configure --enable-tests
24+ - cabal configure --enable-tests -fdev
25 - cabal build
25 - cabal build
26 - cabal test
26 - cabal test
elm-compiler.cabal+11−3
@@ -31,9 +31,18 @@ source-repository head
31 type: git
31 type: git
32 location: git://github.com/elm-lang/elm-compiler.git
32 location: git://github.com/elm-lang/elm-compiler.git
33
33
34+
35+Flag dev {
36+ Description: Turn off optimization to make builds quicker
37+ Default: False
38+}
39+
40+
34Library
41Library
42+ if flag(dev)
35− ghc-options:
43+ ghc-options: -O0 -W
36− -O2 -W
44+ else
45+ ghc-options: -O2
37
46
38 Hs-Source-Dirs:
47 Hs-Source-Dirs:
39 src
48 src
@@ -210,7 +219,6 @@ Test-Suite compiler-tests
210 containers >= 0.3 && < 0.6,
219 containers >= 0.3 && < 0.6,
211 directory >= 1.0 && < 2.0,
220 directory >= 1.0 && < 2.0,
212 edit-distance >= 0.2 && < 0.3,
221 edit-distance >= 0.2 && < 0.3,
213− elm-compiler,
214 filemanip >= 0.3.5 && < 0.4,
222 filemanip >= 0.3.5 && < 0.4,
215 filepath >= 1 && < 2.0,
223 filepath >= 1 && < 2.0,
216 indents >= 0.3 && < 0.4,
224 indents >= 0.3 && < 0.4,