@@ -8,6 +8,9 @@ module Stackage.CompleteBuild
8 , completeBuild
8 , completeBuild
9 , justCheck
9 , justCheck
12+import Control.Concurrent (threadDelay)
13+import Control.Concurrent.Async (withAsync)
11import Data.Default.Class (def)
14import Data.Default.Class (def)
12import Data.Semigroup (Max (..), Option (..))
15import Data.Semigroup (Max (..), Option (..))
13import Data.Text.Read (decimal)
16import Data.Text.Read (decimal)
@@ -145,11 +148,20 @@ renderLTSVer lts = fpFromText $ concat
145 , ".yaml"
148 , ".yaml"
151+-- | Just print a message saying "still alive" every second, to appease Travis.
152+stillAlive :: IO () -> IO ()
154+ withAsync printer $ const inner
156+ printer = forever $ do
158+ putStrLn "Still alive"
148-- | Generate and check a new build plan, but do not execute it.
160-- | Generate and check a new build plan, but do not execute it.
150-- Since 0.3.1
162-- Since 0.3.1
151justCheck :: IO ()
163justCheck :: IO ()
152−justCheck = withManager tlsManagerSettings $ \man -> do
164+justCheck = stillAlive $ withManager tlsManagerSettings $ \man -> do
153 putStrLn "Loading build constraints"
165 putStrLn "Loading build constraints"
154 bc <- defaultBuildConstraints man
166 bc <- defaultBuildConstraints man