Skip to content

Commit 7060017

Browse files
authored
Merge pull request #148 from mseri/travis
travis: update build structure and introduce coverage
2 parents 84b90cd + 1a1b03f commit 7060017

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
language: c
2-
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh
3-
script: bash -ex .travis-opam.sh
4-
sudo: true
2+
install:
3+
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh
4+
- wget https://raw.githubusercontent.com/simonjbeaumont/ocaml-travis-coveralls/master/travis-coveralls.sh
5+
script:
6+
- bash -ex .travis-opam.sh
7+
- if [ ! -z "${XS_COV}" ]; then bash -ex travis-coveralls.sh || true; fi
8+
sudo: required
59
env:
610
global:
7-
- PACKAGE=xapi-idl
811
- OCAML_VERSION=4.02
12+
- PACKAGE=xapi-idl
913
matrix:
10-
- BASE_REMOTE=git://github.com/xapi-project/xs-opam
14+
- BASE_REMOTE=git://github.com/xapi-project/xs-opam XS_COV=1 COV_CONF="ocaml setup.ml -configure --enable-tests"
1115
- EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
1216
matrix:
13-
fast_finish: true
14-
allow_failure:
15-
- env: OCAML_VERSION=4.02 PACKAGE=xapi-idl EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
17+
fast_finish: true
18+
allow_failures:
19+
- env: EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
20+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
xcp-idl
2+
[![Build Status](https://travis-ci.org/xapi-project/xcp-idl.svg?branch=master)](https://travis-ci.org/xapi-project/xcp-idl)
3+
[![Coverage Status](https://coveralls.io/repos/github/xapi-project/xcp-idl/badge.svg)](https://coveralls.io/github/xapi-project/xcp-idl)
24
=======
35

46
This repository contains

0 commit comments

Comments
 (0)