From 2db9dc775cea9508475388805810453b795ddc57 Mon Sep 17 00:00:00 2001 From: Gabor Igloi Date: Fri, 24 Mar 2017 13:44:49 +0000 Subject: [PATCH 1/5] opam: add build-test to test project Signed-off-by: Gabor Igloi --- opam | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opam b/opam index 0c879bd..dd78309 100644 --- a/opam +++ b/opam @@ -15,6 +15,9 @@ tags: [ build: [ [make] ] +build-test: [ + [make "test"] +] install: [ [make "install"] ] From aff0552ce07a709fd4a6e6038d28f01b74a3d128 Mon Sep 17 00:00:00 2001 From: Gabor Igloi Date: Thu, 23 Mar 2017 18:19:06 +0000 Subject: [PATCH 2/5] Travis: update configuration to use xs-opam Use a .travis.yml similar to that of xcp-idl and message-switch. Signed-off-by: Gabor Igloi --- .travis.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 624f9aa..23ae30a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,19 @@ language: c -install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh -script: bash -ex .travis-opam.sh -sudo: true +sudo: required +install: + - wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh + - wget https://raw.githubusercontent.com/simonjbeaumont/ocaml-travis-coveralls/master/travis-coveralls.sh +script: + - bash -ex .travis-opam.sh + - if [ ! -z "${XS_COV}" ]; then bash -ex travis-coveralls.sh || true; fi env: - - OCAML_VERSION=4.02 PACKAGE=xen-api-client + global: + - OCAML_VERSION=4.02 + - PACKAGE=xen-api-client + matrix: + - BASE_REMOTE=git://github.com/xapi-project/xs-opam XS_COV=1 + - EXTRA_REMOTES=git://github.com/xapi-project/xs-opam +matrix: + fast_finish: true + allow_failures: + - env: EXTRA_REMOTES=git://github.com/xapi-project/xs-opam From d13b7163137a90dadc84ed957c455c8c2d31d54b Mon Sep 17 00:00:00 2001 From: Gabor Igloi Date: Fri, 24 Mar 2017 16:47:25 +0000 Subject: [PATCH 3/5] .travis.yml: warn about TESTS causing config error --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 23ae30a..cc61c38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ env: global: - OCAML_VERSION=4.02 - PACKAGE=xen-api-client + # WARNING: Don't set TESTS=true here (which is the default) as that env var + # is already used by the Makefile for OASIS configuration. matrix: - BASE_REMOTE=git://github.com/xapi-project/xs-opam XS_COV=1 - EXTRA_REMOTES=git://github.com/xapi-project/xs-opam From 79be1c37dc896aaa6fe41035565ad00c1ad59c98 Mon Sep 17 00:00:00 2001 From: Gabor Igloi Date: Fri, 24 Mar 2017 14:56:54 +0000 Subject: [PATCH 4/5] README.md: add Travis CI badge Signed-off-by: Gabor Igloi --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c56f8fa..baf8fa2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ Ocaml client for the Xen API. +[![Build Status](https://travis-ci.org/gaborigloi/xen-api-client.svg?branch=master)](https://travis-ci.org/gaborigloi/xen-api-client) Depends on: Xmlm, Lwt, SSL From 0061dada52c4c228e991f01098bc72403c7116c5 Mon Sep 17 00:00:00 2001 From: Gabor Igloi Date: Fri, 24 Mar 2017 16:57:51 +0000 Subject: [PATCH 5/5] README.md: add coveralls badge Signed-off-by: Gabor Igloi --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index baf8fa2..9675a75 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ Ocaml client for the Xen API. [![Build Status](https://travis-ci.org/gaborigloi/xen-api-client.svg?branch=master)](https://travis-ci.org/gaborigloi/xen-api-client) +[![Coverage Status](https://coveralls.io/repos/github/xapi-project/xen-api-client/badge.svg?branch=master)](https://coveralls.io/github/xapi-project/xen-api-client?branch=master) Depends on: Xmlm, Lwt, SSL