-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run travis-ci scripts on top of ocaml-travisci-skeleton
- Loading branch information
Showing
2 changed files
with
22 additions
and
14 deletions.
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,25 +1,27 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
|
||
# build dependencies | ||
sudo add-apt-repository --yes ppa:avsm/ocaml42+opam11 | ||
sudo apt-get update -qq | ||
sudo apt-get install -y ocaml camlp4-extra opam | ||
|
||
# optional dependencies for running tests | ||
sudo apt-get install protobuf-compiler | ||
|
||
|
||
export OPAMYES=1 | ||
rm -rf ~/.opam | ||
# build, run tests, build package, install package | ||
wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh | ||
|
||
. .travis-opam.sh | ||
|
||
|
||
# build and test using the current development version of piqilib | ||
if [ -n "${PIQILIB_DEV-}" ] | ||
then | ||
opam repo add piqi git://github.com/piqi/piqi-opam-repo.git | ||
|
||
opam init | ||
opam remote add piqi git://github.com/piqi/piqi-opam-repo.git | ||
opam install piqilib | ||
opam install piqilib.master | ||
|
||
make distclean | ||
make | ||
make test | ||
fi | ||
|
||
eval `opam config env` | ||
make | ||
make -C tests |
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,2 +1,8 @@ | ||
language: c | ||
script: "./.travis-ci.sh" | ||
env: | ||
- PACKAGE="piqi" OCAML_VERSION=3.12 | ||
- PACKAGE="piqi" OCAML_VERSION=4.00 | ||
- PACKAGE="piqi" OCAML_VERSION=4.01 | ||
- PACKAGE="piqi" OCAML_VERSION=4.02 PIQILIB_DEV=1 | ||
- PACKAGE="piqi" OCAML_VERSION=latest |