diff options
| author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-02-02 09:45:01 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-02-04 08:56:49 +0200 |
| commit | ed50807446e0a086e92ba640cac3941599096d92 (patch) | |
| tree | e4fee4ca079b261162550c35691250bd26026dc0 /scripts | |
| parent | b4f92efaeb4f9d0b60e1806153d77bd347101140 (diff) | |
| download | meta-boot2qt-ed50807446e0a086e92ba640cac3941599096d92.tar.gz | |
scripts: add option to upload all builds
Change-Id: I520e834872d72e1e69519f86220b5400028d644e
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build-all.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/build-all.sh b/scripts/build-all.sh index 63cfc9b..6bb939e 100755 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh | |||
| @@ -21,6 +21,15 @@ | |||
| 21 | ## | 21 | ## |
| 22 | ############################################################################# | 22 | ############################################################################# |
| 23 | 23 | ||
| 24 | while test -n "$1"; do | ||
| 25 | case "$1" in | ||
| 26 | "--upload") | ||
| 27 | UPLOAD=1 | ||
| 28 | ;; | ||
| 29 | esac | ||
| 30 | shift | ||
| 31 | done | ||
| 32 | |||
| 24 | echo "-------------------------------------" >> build.log | 33 | echo "-------------------------------------" >> build.log |
| 25 | for DIR in $(ls -d build-*); do | 34 | for DIR in $(ls -d build-*); do |
| 26 | ( | 35 | ( |
| @@ -29,7 +38,14 @@ for DIR in $(ls -d build-*); do | |||
| 29 | 38 | ||
| 30 | echo "${MACHINE}:" >> ../build.log | 39 | echo "${MACHINE}:" >> ../build.log |
| 31 | echo " start: $(date)" >> ../build.log | 40 | echo " start: $(date)" >> ../build.log |
| 32 | bitbake b2qt-embedded-image meta-toolchain-b2qt-embedded-sdk || echo " build failed" >> ../build.log | 41 | bitbake b2qt-embedded-image meta-toolchain-b2qt-embedded-sdk |
| 42 | if [ $? = 0 ]; then | ||
| 43 | if [ -n "${UPLOAD}" ]; then | ||
| 44 | ../sources/meta-b2qt/scripts/upload.sh | ||
| 45 | fi | ||
| 46 | else | ||
| 47 | echo " build failed" >> ../build.log | ||
| 48 | fi | ||
| 33 | echo " end: $(date)" >> ../build.log | 49 | echo " end: $(date)" >> ../build.log |
| 34 | ) | 50 | ) |
| 35 | done | 51 | done |
