Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (41 sloc) 1.32 KB
sudo: required
language: c
os:
- linux
- osx
env:
- OCAML_VERSION=4.05 OPAM_VERSION=2.0.0
- OCAML_VERSION=4.06 OPAM_VERSION=2.0.0
- OCAML_VERSION=4.07 OPAM_VERSION=2.0.0
matrix:
fast_finish: true
allow_failures:
- os: osx
env: OCAML_VERSION=4.07 OPAM_VERSION=2.0.0
# Needed until `opam depext geneweb` is fixed
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install protobuf ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq protobuf-compiler ; fi
install:
- wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-ocaml.sh
script:
- bash -ex .travis-ocaml.sh ;
set -ex ;
export OPAMYES=1 ;
eval $(opam config env) ;
opam pin add geneweb . --no-action ;
opam install geneweb --deps-only ;
./configure && make clean install uninstall clean ;
make clean distrib clean ;
./configure --api && make clean install uninstall clean ;
opam depext lablgtk && opam install lablgtk && make clean everything-exe clean ;
notifications:
email:
recipients:
- julien.sagot@geneanet.org
on_success: change
on_failure: always
after_failure:
- cat ~/.opam/log/*.out