forked from geneweb/geneweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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