This commit is contained in:
Dmitry Boulytchev 2018-02-20 01:23:57 +03:00
commit 761d472ec1
4 changed files with 41 additions and 3 deletions

8
.travis.yml Normal file
View file

@ -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

View file

@ -1,10 +1,15 @@
SHELL := /bin/bash SHELL := /bin/bash
.PHONY: all .PHONY: all regression
all: all:
pushd src && make && popd pushd src && make && popd
install: ;
regression:
pushd regression && ./test.sh && popd
clean: clean:
pushd src && make clean && popd pushd src && make clean && popd

View file

@ -12,5 +12,3 @@ Building:
* `opam install GT` * `opam install GT`
* To build the sources: `make` from the top project directory * To build the sources: `make` from the top project directory
* To test: `test.sh` from `regression` subfolder * To test: `test.sh` from `regression` subfolder

27
opam Normal file
View file

@ -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"
]