diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2018-06-25 14:27:16 +0200 |
---|---|---|
committer | Laurent Bonnans <laurent.bonnans@here.com> | 2018-09-06 11:45:07 +0200 |
commit | fa634695aa108e6d433e4e8141d68d757a74861b (patch) | |
tree | 9d1b2914dd4b4d93464ce19f2ada88fd11b9cac0 /scripts | |
parent | d3e2c58e8655338b33738e495168a82a74e5b86c (diff) | |
download | meta-updater-fa634695aa108e6d433e4e8141d68d757a74861b.tar.gz |
Run oe-selftest on Jenkins CI
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ci/Jenkinsfile.bleeding | 11 | ||||
-rwxr-xr-x | scripts/ci/oe-selftest.sh | 18 |
2 files changed, 29 insertions, 0 deletions
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 { | |||
69 | sh 'scripts/ci/build.sh core-image-minimal' | 69 | sh 'scripts/ci/build.sh core-image-minimal' |
70 | } | 70 | } |
71 | } | 71 | } |
72 | stage('oe-selftest') { | ||
73 | agent { | ||
74 | dockerfile { | ||
75 | filename 'scripts/ci/Dockerfile.bitbake' | ||
76 | args '-v /opt/jenkins/bitbake-common:/opt/jenkins/bitbake-common' | ||
77 | } | ||
78 | } | ||
79 | steps { | ||
80 | sh 'scripts/ci/oe-selftest.sh' | ||
81 | } | ||
82 | } | ||
72 | } | 83 | } |
73 | } | 84 | } |
74 | // vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: | 85 | // 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 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # run meta-updater's oe-selftests | ||
4 | |||
5 | set -euo pipefail | ||
6 | set -x | ||
7 | |||
8 | TEST_MACHINE=${TEST_MACHINE:-qemux86-64} | ||
9 | TEST_BUILD_DIR=${TEST_BUILD_DIR:-build} | ||
10 | TEST_REPO_DIR=${TEST_REPO_DIR:-updater-repo} | ||
11 | |||
12 | ( | ||
13 | set +euo pipefail | ||
14 | set +x | ||
15 | . "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}" | ||
16 | |||
17 | oe-selftest -r updater | ||
18 | ) | ||