summaryrefslogtreecommitdiff
path: root/jenkins-run
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2014-10-16 10:10:12 +0300
committerRiku Voipio <riku.voipio@linaro.org>2014-10-17 15:16:17 +0300
commit0de30afbb302df418040d7bf377d86c08cd7fc1c (patch)
tree77f07a6231d4ea6a0a3bc321ad37f464527763a0 /jenkins-run
parentcf347f3d1f2067167d3eaa68f5ca1b957f196333 (diff)
Rewrite kvm-ci for docker builds
Install depends and all that Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'jenkins-run')
-rwxr-xr-xjenkins-run22
1 files changed, 14 insertions, 8 deletions
diff --git a/jenkins-run b/jenkins-run
index d9aba47..11e3731 100755
--- a/jenkins-run
+++ b/jenkins-run
@@ -1,21 +1,27 @@
-#!/bin/sh
+#!/bin/bash
# jenkins-run
+export HOME=$(pwd)
-rm -rf build
+sudo dpkg --add-architecture i386
+sudo apt-get update
+sudo apt-get install --no-install-recommends -y linaro-image-tools python-pycurl python-beautifulsoup python-html2text python-xdg qemu-user-static curl git build-essential bc u-boot-tools libc6:i386 libstdc++6:i386 zlib1g:i386
-. ./kvm-ci/configs/${hwpack}.template
+# python-debian in trusty is too old
+curl http://repo.linaro.org/ubuntu/linarorepo.key|sudo apt-key add -
+sudo cp ./kvm-ci/linaro.list /etc/apt/sources.list.d/
+sudo apt-get update
+sudo apt-get install -y python-debian
-export parent_workspace="/mnt/ci_build/workspace/linux-kvm"
-export reference_git="${parent_workspace}/reference-git"
+. ./kvm-ci/configs/${hwpack}.template
-test -d ${reference_git} || time git clone --mirror http://git.linaro.org/git/people/christoffer.dall/linux-kvm-arm.git ${reference_git}
-(cd ${reference_git} && time git fetch)
-time git clone --reference ${reference_git} ${git_url} --branch ${git_branch} build
+rm -rf build
+time git clone --depth=1 ${git_url} --branch ${git_branch} build
cp -a kvm-ci build/
cp kvm-ci/BUILD-INFO.txt .
cd build
+git clone http://git.linaro.org/ci/lci-build-tools.git
if [ ! -z ${kernel_extra_frag} ] && [ -r kvm-ci/configs/${kernel_extra_frag} ]
then