Build configuration.

This commit is contained in:
Podkopaev Anton 2018-02-19 15:53:48 +03:00
parent 84af2a21f5
commit 0efcc73bea
2 changed files with 36 additions and 0 deletions

8
.travis.yml Normal file
View file

@ -0,0 +1,8 @@
language: c
sudo: required
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash -ex .travis-opam.sh
env:
- OCAML_VERSION=4.06
os:
- linux

28
opam Normal file
View file

@ -0,0 +1,28 @@
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" ]
]
install: [make "-f" "Makefile" "PREFIX=%{prefix}%" "install"]
remove: ["ocamlfind" "remove" "compiler-workout"]
flags: [ light-uninstall ]
build-test: [
[make "-f" "Makefile.ob" "test"]
]
depends: [
"ocamlbuild" {build}
"ocamlfind"
"camlp5"
"ostap"
"GT"
"re"
]