From 8e715f17a7ac4ca414955c8ec985ffed26989768 Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Sat, 8 Jun 2019 21:57:46 -0700 Subject: [PATCH] Swap makefile-native test command with script, add script --- makefile | 6 +----- scripts/test_ligo.sh | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 scripts/test_ligo.sh diff --git a/makefile b/makefile index 7b3bc00e1..069943f5b 100644 --- a/makefile +++ b/makefile @@ -22,8 +22,4 @@ build: build-deps .ONESHELL: test: build - eval $(opam env) - run_outcome=`dune build @ligo-test` - if [ ! -n $run_outcome ] - then echo "Run 'eval $(opam env)' and this command will work."; - fi + scripts/test_ligo.sh diff --git a/scripts/test_ligo.sh b/scripts/test_ligo.sh new file mode 100644 index 000000000..d13e26d3d --- /dev/null +++ b/scripts/test_ligo.sh @@ -0,0 +1,2 @@ +eval $(opam env) +dune build @ligo-test