Skip to content

Commit

Permalink
Run travis-ci scripts on top of ocaml-travisci-skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
alavrik committed Apr 5, 2015
1 parent c698cd6 commit 21d56f5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .travis-ci.sh
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
6 changes: 6 additions & 0 deletions .travis.yml
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

0 comments on commit 21d56f5

Please sign in to comment.