Project

General

Profile

Revision f7f851cf

View differences:

.travis-ci.sh
1
OPAM_DEPENDS="ocamlfind ocamlgraph"
2

  
3
case "$OCAML_VERSION,$OPAM_VERSION" in
4
    3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
5
    3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
6
    4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
7
    4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
8
    4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
9
    4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
10
    *) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;;
11
esac
12

  
13
echo "yes" | sudo add-apt-repository ppa:$ppa
14
sudo apt-get update -qq
15
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
16
export OPAMYES=1
17
opam init
18
opam install ${OPAM_DEPENDS}
19
eval `opam config env`
20
autoconf
21
./configure
22
make
.travis.yml
1 1
language: c
2
script: bash -ex .travis-ci.sh
2

  
3 3
env:
4
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.0.0
4
  - OCAML_VERSION=4.02.1 OPAM_VERSION=1.2.0
5
  - OCAML_VERSION=4.02.1 OPAM_VERSION=1.1.0
6
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.2.0
5 7
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.1.0
6
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.0.0
8
  - OCAML_VERSION=4.01.0 OPAM_VERSION=1.0.0
9
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.2.0
7 10
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.1.0
8
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.0.0
11
  - OCAML_VERSION=4.00.1 OPAM_VERSION=1.0.0
12
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.2.0
9 13
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.1.0
14
  - OCAML_VERSION=3.12.1 OPAM_VERSION=1.0.0
15

  
16
before_install:
17
  - OPAM_DEPENDS="ocamlgraph ocamlfind"
18

  
19
install:
20
  - sudo apt-get update -qq
21
  - sudo apt-get install -qq ocaml opam
22
  - export OPAMYES=1
23
  - opam init
24
  - opam install ${OPAM_DEPENDS}
25
  - eval `opam config env`
26

  
27
before_script:
28
  - ocaml -version
29
  - opam --version
30

  
31
script:
32
  - autoconf
33
  - ./configure
34
  - make
10 35

  
11 36
notifications:
12 37
  email:

Also available in: Unified diff