-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Travis build and test of ml-proto.
- Loading branch information
Showing
5 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/*~ | ||
**/*.tmproj | ||
_build | ||
_build | ||
ml-proto/ocaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: c++ | ||
|
||
sudo: off | ||
|
||
install: ./ml-proto/travis/install-ocaml.sh | ||
|
||
script: ./ml-proto/travis/build-test.sh | ||
|
||
os: | ||
- linux | ||
- osx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
# Move to a location relative to the script so it runs | ||
# from anywhere. | ||
cd $(dirname ${BASH_SOURCE[0]})/.. | ||
|
||
export PATH=$PWD/ocaml/install/bin:$PATH | ||
|
||
cd src | ||
|
||
make clean | ||
rm -f lexer.ml | ||
rm -f parser.ml | ||
rm -f parser.mli | ||
|
||
ocamlbuild -libs bigarray main.native | ||
make | ||
|
||
cd .. | ||
|
||
./runtests.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Move to a location relative to the script so it runs | ||
# from anywhere. | ||
cd $(dirname ${BASH_SOURCE[0]})/.. | ||
|
||
rm -rf ocaml | ||
mkdir ocaml | ||
cd ocaml | ||
curl http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.2.tar.gz -O | ||
tar xfz ocaml-4.02.2.tar.gz | ||
cd ocaml-4.02.2 | ||
./configure -prefix $PWD/../install | ||
make world.opt | ||
mkdir ../install | ||
make install |