Skip to content

Commit

Permalink
fix foreign imports: move foreign folder to test/foreigns
Browse files Browse the repository at this point in the history
  • Loading branch information
csicar committed Sep 21, 2019
1 parent 5b610a3 commit 6ef313f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ withDefaultPath cmd =
system' $ "bash -c 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin; export PATH; "<> cmd <>"'"

foreignsDirectory = "./foreigns"
foreignsDirectoryGlobal = "./test/foreigns"

tests = do
withDefaultPath "whereis purs"
foreignsExists <- doesDirectoryExist foreignsDirectory
foreignsExists <- doesDirectoryExist foreignsDirectoryGlobal
if foreignsExists then
withCurrentDirectory foreignsDirectory $ void $ system "git pull"
withCurrentDirectory foreignsDirectoryGlobal $ void $ system "git pull"
else
system' "git clone https://github.com/csicar/pskt-foreigns kotlin/src/main/kotlin/foreigns"
system' $ "git clone https://github.com/csicar/pskt-foreigns " <> foreignsDirectoryGlobal
withCurrentDirectory "./test" $ do
system "rm -r output"
withDefaultPath "spago build -- --codegen corefn"
Expand Down

0 comments on commit 6ef313f

Please sign in to comment.