@@ -34,14 +34,14 @@ data ObRunState
3434
3535main :: IO ()
3636main = do
37− obeliskImpl <- getEnv "OBELISK_IMPL"
37+ obeliskImpl <- fromString <$> getEnv "OBELISK_IMPL"
3838 httpManager <- HTTP.newManager HTTP.defaultManagerSettings
3939 withSystemTempDirectory "blank-project" $ \blankProject ->
4040 hspec $ do
41−
41+ let shelly_ = void . shelly . silently
4242 describe "ob init" $ do
4343 let inTmp :: (Shelly.FilePath -> Sh a) -> IO ()
44− inTmp f = void . shelly . silently . withSystemTempDirectory "ob-init" $ (chdir <*> f) . fromString
44+ inTmp f = shelly_ . withSystemTempDirectory "ob-init" $ (chdir <*> f) . fromString
4545
4646 it "works with default impl" $ inTmp $ \_ -> run "ob" ["init"]
4747 it "works with master branch impl" $ inTmp $ \_ -> run "ob" ["init", "--branch", "master"]
@@ -51,9 +51,15 @@ main = do
5151 errExit False $ run "ob" ["init", "--symlink", "/dev/null"]
5252 ls tmp >>= liftIO . assertEqual "" []
5353
54+ describe "obelisk project" $ parallel $ do
55+ it "can build obelisk command" $ shelly_ $ run "nix-build" ["-A", "command" , obeliskImpl]
56+ it "can build obelisk skeleton" $ shelly_ $ run "nix-build" ["-A", "skeleton", obeliskImpl]
57+ it "can build obelisk shell" $ shelly_ $ run "nix-build" ["-A", "shell", obeliskImpl]
58+ it "can build everything" $ shelly_ $ run "nix-build" [obeliskImpl]
59+
5460 describe "blank initialized project" $ do
5561 let inProj :: Sh a -> IO ()
56− inProj = void . shelly . silently . chdir (fromString blankProject)
62+ inProj = shelly_ . chdir (fromString blankProject)
5763 thunk = ".obelisk/impl"
5864
5965 doubleQuotes s = "\"" <> s <> "\""