Skip to content

Commit a0b7035

Browse files
committed
CP-15745: Use xenserver-build-env for travis build
Signed-off-by: John Else <john.else@citrix.com>
1 parent dd9c643 commit a0b7035

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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
2+
services: docker
3+
install:
4+
- wget https://raw.githubusercontent.com/xenserver/xenserver-build-env/master/run.py
5+
- wget https://raw.githubusercontent.com/xenserver/xenserver-build-env/master/utils/travis-build-repo.sh
6+
script: sh travis-build-repo.sh xapi
47
sudo: true
58
env:
6-
- OCAML_VERSION=4.02 PACKAGE=xapi FORK_USER=xapi-project EXTRA_REMOTES=git://github.com/xapi-project/opam-repo-dev
9+
- OCAML_VERSION=4.02
710
notifications:
811
slack: citrix:BHYQZbI8m036ELU21gZil75Y

travis/build-internal.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
set -eux
4+
5+
REPO_PATH=$1
6+
REPO=`basename $REPO_PATH`
7+
8+
cp -r $REPO_PATH .
9+
cd $REPO
10+
./configure && make && make test

0 commit comments

Comments
 (0)