mirror of
https://github.com/nmattia/niv.git
synced 2024-11-07 22:36:53 +03:00
Fix tests
This commit is contained in:
parent
1915efad57
commit
53aaaba6a2
@ -22,7 +22,9 @@ let
|
||||
# TODO: Remove this patch by adding an argument to the github
|
||||
# subcommand to support GitHub entreprise.
|
||||
prePatch = ''
|
||||
sed "s|GH.executeRequest'|(GH.executeRequest (GH.EnterpriseOAuth \"http://localhost:3333\" \"\"))|" -i src/Niv/GitHub.hs
|
||||
sed "/import Data.Text.Encoding (encodeUtf8)/d" -i src/Niv/GitHub.hs
|
||||
sed "/import System.Environment (lookupEnv)/d" -i src/Niv/GitHub.hs
|
||||
sed "s|token <- fmap (GH.OAuth . encodeUtf8 . T.pack) <$> lookupEnv \"GITHUB_TOKEN\"|let token = Just (GH.EnterpriseOAuth \"http://localhost:3333\" \"\")|" -i src/Niv/GitHub.hs
|
||||
sed "s|https://github.com|http://localhost:3333|" -i src/Niv/GitHub.hs
|
||||
'';
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user