Initial population with sample code

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-01-15 10:16:13 +00:00
commit 09d2ec62dc
3 changed files with 37 additions and 0 deletions

7
README Normal file
View File

@ -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 <richard.purdie@linuxfoundation.org>
Joshua Lock <joshua.g.lock@intel.com>

27
scripts/buildhistory-init Executable file
View File

@ -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

3
scripts/setup-config Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
buildhistory-init
echo "setup-config called with $@"