on master help sign in
Add --skip-upload flag
1f28245Chris Done
Stackage/CompleteBuild.hs+3−1
@@ -28,6 +28,7 @@ import System.IO (BufferMode (LineBuffering), hSetBuffering)
28-- | Flags passed in from the command line.
28-- | Flags passed in from the command line.
29data BuildFlags = BuildFlags
29data BuildFlags = BuildFlags
30 { bfEnableTests :: !Bool
30 { bfEnableTests :: !Bool
31+ , bfDoUpload :: !Bool
31 } deriving (Show)
32 } deriving (Show)
32
33
33data BuildType = Nightly | LTS BumpType
34data BuildType = Nightly | LTS BumpType
@@ -182,7 +183,8 @@ completeBuild buildType buildFlags = withManager tlsManagerSettings $ \man -> do
182 }
183 }
183 performBuild pb >>= mapM_ putStrLn
184 performBuild pb >>= mapM_ putStrLn
184
185
186+ when (bfDoUpload buildFlags) $
185− finallyUpload settings man pb
187+ finallyUpload settings man pb
186
188
187-- | The final part of the complete build process: uploading a bundle,
189-- | The final part of the complete build process: uploading a bundle,
188-- docs and a distro to hackage.
190-- docs and a distro to hackage.
app/stackage.hs+6−1
@@ -61,4 +61,9 @@ main =
61 not
61 not
62 (switch
62 (switch
63 (long "skip-tests" <>
63 (long "skip-tests" <>
64− help "Skip build and running the test suites"))
64+ help "Skip build and running the test suites")) <*>
65+ fmap
66+ not
67+ (switch
68+ (long "skip-upload" <>
69+ help "Skip uploading bundle, docs, etc."))