3import Control.Monad (unless)
4import Data.List (isInfixOf)
10import Elm.Internal.Paths as Elm
14 top <- getCurrentDirectory
16 -- setup submodules and npm
17 runCmd "git" ["submodule", "update", "--init"]
18 out <- readProcess "npm" ["ls", "--parseable"] ""
19 unless ("jsdom" `isInfixOf` out) $ runCmd "npm" ["install","jsdom"]
21 -- setup actual library tests
22 setCurrentDirectory $ top </> "tests" </> "libraries"
23 let localCompiler = joinPath [ top, "dist", "build", "elm", "elm" ]
24 runCmd localCompiler [ "--make"
26 , "--src-dir=" ++ top </> "automaton"
27 , "--src-dir=" ++ top </> "IO"
28 , "--src-dir=" ++ top </> "Elm-Test"
33 let ioScript s = top </> "IO" </> s
34 files = [ ioScript "prescript.js"
36 , "build" </> "Test.js"
37 , ioScript "handler.js"
39 exe <- readProcess "cat" files ""
40 writeFile "exe.js" exe
41 exitWith =<< waitForProcess =<< (runCommand "node exe.js")
43runCmd :: String -> [String] -> IO ()
45 putStrLn (cmd ++ " " ++ unwords args)
46 (exitCode, _stdout, stderr) <- readProcessWithExitCode cmd args ""
48 ExitSuccess -> return ()
49 ExitFailure _ -> error stderr
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list