Safe Haskell | None |
---|---|
Language | Haskell2010 |
Development.Bake
Description
Define a continuous integration system.
- bake :: (Show state, Read state, Show patch, Read patch, Show test, Read test) => Oven state patch test -> IO ()
- data Candidate state patch = Candidate state [patch]
- data Oven state patch test = Oven {
- ovenUpdateState :: Maybe (Candidate state patch) -> IO state
- ovenRunTest :: Candidate state patch -> Maybe test -> TestInfo test
- ovenPatchReject :: patch -> Maybe test -> IO ()
- ovenPatchExtra :: patch -> IO String
- ovenDefaultServer :: (Host, Port)
- data TestInfo test
- defaultOven :: Oven state patch test
- run :: IO [test] -> TestInfo test
- threads :: Int -> TestInfo test -> TestInfo test
- threadsAll :: TestInfo test -> TestInfo test
- before :: [test] -> TestInfo test -> TestInfo test
- beforeClear :: TestInfo test -> TestInfo test
- require :: String -> TestInfo test -> TestInfo test
- startServer :: (Show state, Read state, Show patch, Read patch, Show test, Read test) => Port -> Author -> String -> Oven state patch test -> IO ()
- startClient :: (Host, Port) -> Author -> String -> [String] -> Int -> IO ()
- sendPause :: (Host, Port) -> Author -> IO ()
- sendUnpause :: (Host, Port) -> Author -> IO ()
- sendAddPatch :: Show patch => (Host, Port) -> Author -> patch -> IO ()
- sendDelPatch :: Show patch => (Host, Port) -> Author -> patch -> IO ()
- sendDelAllPatches :: (Host, Port) -> Author -> IO ()
- type Host = String
- type Port = Int
Execute
bake :: (Show state, Read state, Show patch, Read patch, Show test, Read test) => Oven state patch test -> IO () Source
Central types
data Oven state patch test Source
Constructors
Oven | |
Fields
|
defaultOven :: Oven state patch test Source
TestInfo mutators
threadsAll :: TestInfo test -> TestInfo test Source
beforeClear :: TestInfo test -> TestInfo test Source
Operations
startServer :: (Show state, Read state, Show patch, Read patch, Show test, Read test) => Port -> Author -> String -> Oven state patch test -> IO () Source
sendUnpause :: (Host, Port) -> Author -> IO () Source
sendDelAllPatches :: (Host, Port) -> Author -> IO () Source