diff options
author | lbonn <lbonn@users.noreply.github.com> | 2018-06-19 10:53:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-19 10:53:32 +0200 |
commit | 2ca1b16a0910ec4890c504ce01e54161038a03e4 (patch) | |
tree | b709a5a9239806a744bcca38b200960e471921fe /scripts/ci/build.sh | |
parent | 46a3601acbda26e2fdeb3a3daf337887e757742c (diff) | |
parent | 8d021e159daf094d6056654a1ff5957353357163 (diff) | |
download | meta-updater-2ca1b16a0910ec4890c504ce01e54161038a03e4.tar.gz |
Merge pull request #344 from advancedtelematic/test/ci-jenkins
First pipeline setup for meta-updater CI
Diffstat (limited to 'scripts/ci/build.sh')
-rwxr-xr-x | scripts/ci/build.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh new file mode 100755 index 0000000..6235428 --- /dev/null +++ b/scripts/ci/build.sh | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -euo pipefail | ||
4 | set -x | ||
5 | |||
6 | TEST_MACHINE=${TEST_MACHINE:-qemux86-64} | ||
7 | TEST_BUILD_DIR=${TEST_BUILD_DIR:-build} | ||
8 | TEST_REPO_DIR=${TEST_REPO_DIR:-updater-repo} | ||
9 | |||
10 | IMAGE_NAME=${1:-core-image-minimal} | ||
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 | bitbake "${IMAGE_NAME}" | ||
18 | ) | ||