1-----------------------------------------------------------------------------
4-- License : MIT (http://opensource.org/licenses/MIT)
6-- Maintainer : Phil Freeman <paf31@cantab.net>
7-- Stability : experimental
12-----------------------------------------------------------------------------
13module TestsSetup where
18import Data.Maybe (fromMaybe)
20import Control.Monad.Trans.Maybe
23import System.Directory
26import Language.PureScript.Crash
28findNodeProcess :: IO (Maybe String)
29findNodeProcess = runMaybeT . msum $ map (MaybeT . findExecutable) names
31 names = ["nodejs", "node"]
33fetchSupportCode :: IO ()
35 node <- fromMaybe (internalError "cannot find node executable") <$> findNodeProcess
36 setCurrentDirectory "tests/support"
37 if System.Info.os == "mingw32"
38 then callProcess "setup-win.cmd" []
40 callProcess "npm" ["install"]
41 -- Sometimes we run as a root (e.g. in simple docker containers)
42 -- And we are non-interactive: https://github.com/bower/bower/issues/1162
43 callProcess "node_modules/.bin/bower" ["--allow-root", "install", "--config.interactive=false"]
44 callProcess node ["setup.js"]
45 setCurrentDirectory "../.."
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