From fa634695aa108e6d433e4e8141d68d757a74861b Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Mon, 25 Jun 2018 14:27:16 +0200 Subject: Run oe-selftest on Jenkins CI --- scripts/ci/Jenkinsfile.bleeding | 11 +++++++++++ scripts/ci/oe-selftest.sh | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 scripts/ci/oe-selftest.sh (limited to 'scripts') diff --git a/scripts/ci/Jenkinsfile.bleeding b/scripts/ci/Jenkinsfile.bleeding index 6d0f1e7..aba7d39 100644 --- a/scripts/ci/Jenkinsfile.bleeding +++ b/scripts/ci/Jenkinsfile.bleeding @@ -69,6 +69,17 @@ pipeline { sh 'scripts/ci/build.sh core-image-minimal' } } + stage('oe-selftest') { + agent { + dockerfile { + filename 'scripts/ci/Dockerfile.bitbake' + args '-v /opt/jenkins/bitbake-common:/opt/jenkins/bitbake-common' + } + } + steps { + sh 'scripts/ci/oe-selftest.sh' + } + } } } // vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: diff --git a/scripts/ci/oe-selftest.sh b/scripts/ci/oe-selftest.sh new file mode 100755 index 0000000..3124cce --- /dev/null +++ b/scripts/ci/oe-selftest.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# run meta-updater's oe-selftests + +set -euo pipefail +set -x + +TEST_MACHINE=${TEST_MACHINE:-qemux86-64} +TEST_BUILD_DIR=${TEST_BUILD_DIR:-build} +TEST_REPO_DIR=${TEST_REPO_DIR:-updater-repo} + +( +set +euo pipefail +set +x +. "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" + +oe-selftest -r updater +) -- cgit v1.2.3-54-g00ecf