diff --git a/src/build-deps.sh b/src/build-deps.sh new file mode 100644 index 000000000..bbfd9c3cf --- /dev/null +++ b/src/build-deps.sh @@ -0,0 +1,6 @@ +#!/bin/sh +vendors/opam-repository-tools/rewrite-local-opam-repository.sh +opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository-local-generated/" +opam install ocp-indent merlin alcotest-lwt crowbar +opam user-setup install +opam install -y --build-test --deps-only ./src/ diff --git a/src/build.sh b/src/build.sh new file mode 100644 index 000000000..d203b42e5 --- /dev/null +++ b/src/build.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +dune build -p ligo diff --git a/src/install.sh b/src/install.sh new file mode 100644 index 000000000..99d86d003 --- /dev/null +++ b/src/install.sh @@ -0,0 +1,6 @@ +add-apt-repository ppa:avsm/ppa +apt update +apt-get install opam mercurial darcs make m4 gcc libev-dev libgmp-dev pkg-config libhidapi-dev +opam init --bare +y +y diff --git a/src/makefile b/src/makefile new file mode 100644 index 000000000..e775b0376 --- /dev/null +++ b/src/makefile @@ -0,0 +1,11 @@ +install: + ./install.sh + +build-deps: + ./build-deps.sh + +build: build-deps + ./build.sh + +test: build + dune build @ligo-test