diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..7dbaf148d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: c +sudo: required +install: wget https://raw.githubusercontent.com/anlun/ocaml-ci-scripts/patch-1/.travis-opam.sh +script: bash -ex .travis-opam.sh +env: + - OCAML_VERSION=4.06 +os: + - linux \ No newline at end of file diff --git a/Makefile b/Makefile index d13b54d61..4b162e273 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,15 @@ SHELL := /bin/bash -.PHONY: all +.PHONY: all regression all: pushd src && make && popd +install: ; + +regression: + pushd regression && ./test.sh && popd + clean: pushd src && make clean && popd diff --git a/README.md b/README.md index e2e51686a..552617ec3 100644 --- a/README.md +++ b/README.md @@ -12,5 +12,3 @@ Building: * `opam install GT` * To build the sources: `make` from the top project directory * To test: `test.sh` from `regression` subfolder - - diff --git a/opam b/opam new file mode 100644 index 000000000..2099ce320 --- /dev/null +++ b/opam @@ -0,0 +1,27 @@ +opam-version: "1.2" +authors: "dboulytchev@gmail.com" +maintainer: "dboulytchev@gmail.com" +version: "0.3" +homepage: "https://github.com/dboulytchev/compiler-workout" +bug-reports: "https://github.com/dboulytchev/compiler-workout/issues" +dev-repo: "git+https://github.com/dboulytchev/compiler-workout.git" + +build: [ + [make "-f" "Makefile" ] +] + +remove: ["ocamlfind" "remove" "compiler-workout"] +flags: [ light-uninstall ] + +build-test: [ + [make "-f" "Makefile" "regression"] +] + +depends: [ + "ocamlbuild" {build} + "ocamlfind" + "camlp5" + "ostap" + "GT" + "re" +] \ No newline at end of file