on master help sign in
reduce ci tests
e1b6740Harendra Kumar
.travis.yml+19−19
@@ -79,19 +79,19 @@ matrix:
79
79
80 # For 7.10.3 we disable -Werror because of some bogus SPECIALIZE pragma
80 # For 7.10.3 we disable -Werror because of some bogus SPECIALIZE pragma
81 # warnings.
81 # warnings.
82− - env: BUILD=stack RESOLVER=lts-6 GHCVER=7.10.3 GHC_OPTIONS="" STACK_YAML=stack-7.10.yaml DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
82+ #- env: BUILD=stack RESOLVER=lts-6 GHCVER=7.10.3 GHC_OPTIONS="" STACK_YAML=stack-7.10.yaml DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
83− addons: {apt: {packages: [cabal-install-1.22,libsdl1.2-dev], sources: [hvr-ghc]}}
83+ # addons: {apt: {packages: [cabal-install-1.22,libsdl1.2-dev], sources: [hvr-ghc]}}
84
84
85− - env: BUILD=stack RESOLVER=lts-9 GHCVER=8.0.2 STACK_YAML=stack-8.0.yaml DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
85+ #- env: BUILD=stack RESOLVER=lts-9 GHCVER=8.0.2 STACK_YAML=stack-8.0.yaml DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
86− addons: {apt: {packages: [cabal-install-1.24,libsdl1.2-dev], sources: [hvr-ghc]}}
86+ # addons: {apt: {packages: [cabal-install-1.24,libsdl1.2-dev], sources: [hvr-ghc]}}
87
87
88− # Use cabal-install-1.24 for stack solver to work
88+ ## Use cabal-install-1.24 for stack solver to work
89− - env: BUILD=stack GHCVER=8.2.2 RESOLVER=lts-11 GHC_OPTIONS="" DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:diag"
89+ #- env: BUILD=stack GHCVER=8.2.2 RESOLVER=lts-11 GHC_OPTIONS="" DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y STACK_BUILD_OPTIONS="--flag streamly:diag"
90− addons: {apt: {packages: [cabal-install-1.24,libsdl1.2-dev], sources: [hvr-ghc]}}
90+ # addons: {apt: {packages: [cabal-install-1.24,libsdl1.2-dev], sources: [hvr-ghc]}}
91
91
92− # Use cabal-install-1.24 for stack solver to work
92+ ## Use cabal-install-1.24 for stack solver to work
93− - env: BUILD=stack RESOLVER=nightly DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y
93+ #- env: BUILD=stack RESOLVER=nightly DISABLE_SDIST_BUILD=y DISABLE_DIST_CHECKS=y
94− addons: {apt: {packages: [cabal-install-1.24], sources: [hvr-ghc]}}
94+ # addons: {apt: {packages: [cabal-install-1.24], sources: [hvr-ghc]}}
95
95
96 # You can keep a STACK_YAML file at any path location
96 # You can keep a STACK_YAML file at any path location
97 #- env: BUILD=stack STACK_YAML=.ci/stack-8.0.yaml
97 #- env: BUILD=stack STACK_YAML=.ci/stack-8.0.yaml
@@ -116,14 +116,14 @@ matrix:
116
116
117 # Using stack builds, cabal builds get terminated because the tests
117 # Using stack builds, cabal builds get terminated because the tests
118 # take more than 10 minutes and it does not produce any output until the end.
118 # take more than 10 minutes and it does not produce any output until the end.
119− - env: BUILD=stack RESOLVER=lts-12 GHCVER=8.4.3
119+ #- env: BUILD=stack RESOLVER=lts-12 GHCVER=8.4.3
120− addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}}
120+ # addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}}
121
121
122− - env: BUILD=stack RESOLVER=lts-12 GHCVER=8.4.3 GHC_OPTIONS="" STACK_BUILD_OPTIONS="--flag streamly:streamk"
122+ #- env: BUILD=stack RESOLVER=lts-12 GHCVER=8.4.3 GHC_OPTIONS="" STACK_BUILD_OPTIONS="--flag streamly:streamk"
123− addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}}
123+ # addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3], sources: [hvr-ghc]}}
124
124
125− - env: BUILD=cabal-new GHCVER=head GHC_OPTIONS=""
125+ #- env: BUILD=cabal-new GHCVER=head GHC_OPTIONS=""
126− addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
126+ # addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
127
127
128 # You can specify build flags like this:
128 # You can specify build flags like this:
129 #- env: BUILD=cabal-new CABAL_NEWBUILD_OPTIONS="--flags=dev"
129 #- env: BUILD=cabal-new CABAL_NEWBUILD_OPTIONS="--flags=dev"
@@ -134,8 +134,8 @@ matrix:
134 # --------------------------------------------------------------------------
134 # --------------------------------------------------------------------------
135
135
136 # GHC 8.2.2/cabal build using stack!
136 # GHC 8.2.2/cabal build using stack!
137− - env: BUILD=cabal-new RESOLVER=lts-11 GHCVER=8.2.2 GHC_OPTIONS=""
137+ #- env: BUILD=cabal-new RESOLVER=lts-11 GHCVER=8.2.2 GHC_OPTIONS=""
138− os: osx
138+ # os: osx
139
139
140 # GHC 8.2.2/stack
140 # GHC 8.2.2/stack
141 #- env: BUILD=stack RESOLVER=lts-11 GHCVER=8.2.2
141 #- env: BUILD=stack RESOLVER=lts-11 GHCVER=8.2.2
@@ -145,7 +145,7 @@ matrix:
145 # Lint e.g. HLINT_COMMANDS="hlint lint src; hlint lint test"
145 # Lint e.g. HLINT_COMMANDS="hlint lint src; hlint lint test"
146 # --------------------------------------------------------------------------
146 # --------------------------------------------------------------------------
147
147
148− - env: BUILD=stack RESOLVER=lts-11 HLINT_COMMANDS="hlint lint ."
148+ #- env: BUILD=stack RESOLVER=lts-11 HLINT_COMMANDS="hlint lint ."
149
149
150 # --------------------------------------------------------------------------
150 # --------------------------------------------------------------------------
151 # Build and send coverage report to coveralls.io using hpc-coveralls
151 # Build and send coverage report to coveralls.io using hpc-coveralls
streamly.cabal+4−2
@@ -190,11 +190,13 @@ library
190-- Test suites
190-- Test suites
191-------------------------------------------------------------------------------
191-------------------------------------------------------------------------------
192
192
193+-- Compilation for coverage builds on CI machines takes too long without -O0
194+
193test-suite test
195test-suite test
194 type: exitcode-stdio-1.0
196 type: exitcode-stdio-1.0
195 main-is: Main.hs
197 main-is: Main.hs
196 hs-source-dirs: test
198 hs-source-dirs: test
197− ghc-options: -O2 -Wall -threaded -with-rtsopts=-N
199+ ghc-options: -O0 -Wall -threaded -with-rtsopts=-N
198 if flag(dev)
200 if flag(dev)
199 ghc-options: -Wmissed-specialisations
201 ghc-options: -Wmissed-specialisations
200 -Wall-missed-specialisations
202 -Wall-missed-specialisations
@@ -221,7 +223,7 @@ test-suite properties
221 type: exitcode-stdio-1.0
223 type: exitcode-stdio-1.0
222 main-is: Prop.hs
224 main-is: Prop.hs
223 hs-source-dirs: test
225 hs-source-dirs: test
224− ghc-options: -O2 -Wall -threaded -with-rtsopts=-N
226+ ghc-options: -Wall -O0 -threaded -with-rtsopts=-N
225 if flag(dev)
227 if flag(dev)
226 cpp-options: -DDEVBUILD
228 cpp-options: -DDEVBUILD
227 ghc-options: -Wmissed-specialisations
229 ghc-options: -Wmissed-specialisations
test/Prop.hs+20−2
@@ -692,50 +692,66 @@ main = hspec
692
692
693 let makeOps t =
693 let makeOps t =
694 [ t
694 [ t
695+#ifndef COVERAGE_BUILD
695 , t . maxRate 0
696 , t . maxRate 0
696 , t . maxRate (-1)
697 , t . maxRate (-1)
697 , t . maxBuffer 0
698 , t . maxBuffer 0
698−#ifndef COVERAGE_BUILD
699 , t . maxBuffer 1
699 , t . maxBuffer 1
700−#endif
701 , t . maxThreads 0
700 , t . maxThreads 0
702 , t . maxThreads 1
701 , t . maxThreads 1
703 , t . maxThreads (-1)
702 , t . maxThreads (-1)
703+#endif
704 ]
704 ]
705
705
706 let serialOps :: IsStream t => ((SerialT IO a -> t IO a) -> Spec) -> Spec
706 let serialOps :: IsStream t => ((SerialT IO a -> t IO a) -> Spec) -> Spec
707 serialOps = forM_ $ (makeOps serially)
707 serialOps = forM_ $ (makeOps serially)
708+#ifndef COVERAGE_BUILD
708 ++ [serially . maxRate 0.00000001]
709 ++ [serially . maxRate 0.00000001]
709 ++ [serially . maxBuffer (-1)]
710 ++ [serially . maxBuffer (-1)]
711+#endif
710 let wSerialOps :: IsStream t => ((WSerialT IO a -> t IO a) -> Spec) -> Spec
712 let wSerialOps :: IsStream t => ((WSerialT IO a -> t IO a) -> Spec) -> Spec
711 wSerialOps = forM_ $ makeOps wSerially
713 wSerialOps = forM_ $ makeOps wSerially
714+#ifndef COVERAGE_BUILD
712 ++ [wSerially . maxRate 0.00000001]
715 ++ [wSerially . maxRate 0.00000001]
713 ++ [wSerially . maxBuffer (-1)]
716 ++ [wSerially . maxBuffer (-1)]
717+#endif
714 let asyncOps :: IsStream t => ((AsyncT IO a -> t IO a) -> Spec) -> Spec
718 let asyncOps :: IsStream t => ((AsyncT IO a -> t IO a) -> Spec) -> Spec
715 asyncOps = forM_ $ makeOps asyncly
719 asyncOps = forM_ $ makeOps asyncly
720+#ifndef COVERAGE_BUILD
716 ++ [asyncly . maxRate 10000]
721 ++ [asyncly . maxRate 10000]
717 ++ [asyncly . maxBuffer (-1)]
722 ++ [asyncly . maxBuffer (-1)]
723+#endif
718 let wAsyncOps :: IsStream t => ((WAsyncT IO a -> t IO a) -> Spec) -> Spec
724 let wAsyncOps :: IsStream t => ((WAsyncT IO a -> t IO a) -> Spec) -> Spec
719 wAsyncOps = forM_ $ makeOps wAsyncly
725 wAsyncOps = forM_ $ makeOps wAsyncly
726+#ifndef COVERAGE_BUILD
720 ++ [wAsyncly . maxRate 10000]
727 ++ [wAsyncly . maxRate 10000]
721 ++ [wAsyncly . maxBuffer (-1)]
728 ++ [wAsyncly . maxBuffer (-1)]
729+#endif
722 let aheadOps :: IsStream t => ((AheadT IO a -> t IO a) -> Spec) -> Spec
730 let aheadOps :: IsStream t => ((AheadT IO a -> t IO a) -> Spec) -> Spec
723 aheadOps = forM_ $ makeOps aheadly
731 aheadOps = forM_ $ makeOps aheadly
732+#ifndef COVERAGE_BUILD
724 ++ [aheadly . maxRate 10000]
733 ++ [aheadly . maxRate 10000]
725 ++ [aheadly . maxBuffer (-1)]
734 ++ [aheadly . maxBuffer (-1)]
735+#endif
726 let parallelOps :: IsStream t => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
736 let parallelOps :: IsStream t => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
727 parallelOps = forM_ $ makeOps parallely
737 parallelOps = forM_ $ makeOps parallely
738+#ifndef COVERAGE_BUILD
728 ++ [parallely . maxRate 0.00000001]
739 ++ [parallely . maxRate 0.00000001]
729 ++ [parallely . maxBuffer (-1)]
740 ++ [parallely . maxBuffer (-1)]
741+#endif
730 let zipSerialOps :: IsStream t => ((ZipSerialM IO a -> t IO a) -> Spec) -> Spec
742 let zipSerialOps :: IsStream t => ((ZipSerialM IO a -> t IO a) -> Spec) -> Spec
731 zipSerialOps = forM_ $ makeOps zipSerially
743 zipSerialOps = forM_ $ makeOps zipSerially
744+#ifndef COVERAGE_BUILD
732 ++ [zipSerially . maxRate 0.00000001]
745 ++ [zipSerially . maxRate 0.00000001]
733 ++ [zipSerially . maxBuffer (-1)]
746 ++ [zipSerially . maxBuffer (-1)]
747+#endif
734 -- Note, the "pure" of applicative Zip streams generates and infinite
748 -- Note, the "pure" of applicative Zip streams generates and infinite
735 -- stream and therefore maxBuffer (-1) must not be used for that case.
749 -- stream and therefore maxBuffer (-1) must not be used for that case.
736 let zipAsyncOps :: IsStream t => ((ZipAsyncM IO a -> t IO a) -> Spec) -> Spec
750 let zipAsyncOps :: IsStream t => ((ZipAsyncM IO a -> t IO a) -> Spec) -> Spec
737 zipAsyncOps = forM_ $ makeOps zipAsyncly
751 zipAsyncOps = forM_ $ makeOps zipAsyncly
752+#ifndef COVERAGE_BUILD
738 ++ [zipAsyncly . maxRate 10000]
753 ++ [zipAsyncly . maxRate 10000]
754+#endif
739
755
740 describe "Construction" $ do
756 describe "Construction" $ do
741 serialOps $ prop "serially replicateM" . constructWithReplicateM
757 serialOps $ prop "serially replicateM" . constructWithReplicateM
@@ -883,11 +899,13 @@ main = hspec
883 -- exclude those cases from these.
899 -- exclude those cases from these.
884 let mkOps t =
900 let mkOps t =
885 [ t
901 [ t
902+#ifndef COVERAGE_BUILD
886 , t . maxRate 0
903 , t . maxRate 0
887 , t . maxRate (-1)
904 , t . maxRate (-1)
888 , t . maxBuffer 0
905 , t . maxBuffer 0
889 , t . maxThreads 0
906 , t . maxThreads 0
890 , t . maxThreads (-1)
907 , t . maxThreads (-1)
908+#endif
891 ]
909 ]
892
910
893 describe "Stream concurrent operations" $ do
911 describe "Stream concurrent operations" $ do