commit 09d2ec62dc9d0d11263a66fc88e8bd3d313660a3 Author: Richard Purdie Date: Mon Jan 15 10:16:13 2018 +0000 Initial population with sample code Signed-off-by: Richard Purdie diff --git a/README b/README new file mode 100644 index 0000000..6ca3d0e --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +This repo is designed to work in conjuction yocto-autobuilder. Whilst +yocto-autobuilder is designed to cover all releases, this repo has a branch per +release and contains the hooks that do the actual build configuration and execution. + +Authors: + Richard Purdie + Joshua Lock \ No newline at end of file diff --git a/scripts/buildhistory-init b/scripts/buildhistory-init new file mode 100755 index 0000000..0aef036 --- /dev/null +++ b/scripts/buildhistory-init @@ -0,0 +1,27 @@ +#!/bin/sh + +exit 0 + +# Example code dumped from an existing nightly-arm buildhistory step for reference + +if [ ! -d /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm ]; then + mkdir -p /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm + git init /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm +fi + +rm -rf /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm +mkdir -p /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm +git init /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm + +if git ls-remote --exit-code ssh://git@push.yoctoproject.org/poky-buildhistory refs/heads/poky/master-next/nightly-arm> /dev/null; then + git push -q ssh://git@push.yoctoproject.org/poky-buildhistory :poky/master-next/nightly-arm +fi + +if ! git ls-remote --exit-code ssh://git@push.yoctoproject.org/poky-buildhistory refs/heads/poky/master-next/nightly-arm > /dev/null; then + cd /srv/www/vhosts/autobuilder.yoctoproject.org/buildhistory/poky/master-next/nightly-arm + echo 'Initializing Repo' >> README + git checkout -b poky/master-next/nightly-arm + git add README + git commit -s -m 'Initializing Repo' + git push -q ssh://git@push.yoctoproject.org/poky-buildhistory poky/master-next/nightly-arm:poky/master-next/nightly-arm +fi diff --git a/scripts/setup-config b/scripts/setup-config new file mode 100755 index 0000000..c4d8a3f --- /dev/null +++ b/scripts/setup-config @@ -0,0 +1,3 @@ +#!/bin/sh +buildhistory-init +echo "setup-config called with $@"