Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 929c993

Browse files
committed
CP-15745: Add a utility script for building packages under travis
Signed-off-by: John Else <john.else@citrix.com>
1 parent 1444555 commit 929c993

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

utils/travis-build-repo.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
# This script is intended to called from inside a git repo by travis.
4+
# It will launch a xenserver-build-env container with the git repo mounted,
5+
# and will call the script travis/build-internal.sh (assumed to be part of the
6+
# repo) inside the container.
7+
#
8+
# This script expects a package name as the first argument - this wil be used
9+
# to install dependencies inside the container.
10+
11+
set -eux
12+
13+
PACKAGE=$1
14+
REPO=`basename $PWD`
15+
REPO_PATH=/repos/$REPO
16+
17+
python run.py -p $PACKAGE --rm \
18+
-v $PWD:$REPO_PATH \
19+
$REPO_PATH/travis/build-internal.sh $REPO_PATH

0 commit comments

Comments
 (0)