Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information...
nmattia committed Jun 18, 2019
1 parent 1915efa commit 53aaaba6a2e48ee5126b776ddc207390bde98aef
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/default.nix
@@ -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
'';
});

0 comments on commit 53aaaba

Please sign in to comment.
You can’t perform that action at this time.