summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-03-22 16:20:29 +0000
committerRenato Golin <renato.golin@linaro.org>2017-03-22 16:54:48 +0000
commit24199a58665e888ee65471561108a809c2788ddf (patch)
tree413767fea51265ad5586fbbd7f6f293455f6b450
parent9bc2e4e5eecacadf1ad4a78cfee323451a988d64 (diff)
tcwg-llvm-build.sh: Push tar ball to dev-01
After install, repeat the release package process and push to our file server so other jobs can use those toolchains. The official release has M.m.r-rcN format for the release candidates, so I made ciN for Jenkins builds, so we can differentiate between each other. Change-Id: Icf24c5c44047cab8c136556de8420493ebf23261
-rwxr-xr-xtcwg-llvm-build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tcwg-llvm-build.sh b/tcwg-llvm-build.sh
index 8a87a4cd..af60179d 100755
--- a/tcwg-llvm-build.sh
+++ b/tcwg-llvm-build.sh
@@ -189,4 +189,17 @@ cd "$BUILDDIR" && cmake -G "$GEN" "$SRCDIR" $OPTIONS -DLLVM_LIT_ARGS="-sv -j$CPU
# Build + check
cd "$BUILDDIR" && $BUILD "-j$CPUS" |& tee "$LOGBASE-build.$LOGEXT"
cd "$BUILDDIR" && $BUILD "-j$CPUS" check-all |& tee "$LOGBASE-check.$LOGEXT"
+
+# Install
cd "$BUILDDIR" && $BUILD "-j$CPUS" DESTDIR="$INSTDIR" install |& tee "$LOGBASE-install.$LOGEXT"
+
+# Pack & Ship
+VERSION=$("$BUILDDIR/bin/clang" --version | awk '/clang version/ { print $3 }')
+TARGET=$("$BUILDDIR/bin/clang" --version | awk '/Target:/ { print $2 }')
+TARBALL=clang+llvm-$VERSION-ci$BUILD_ID-$TARGET
+PUSHDIR=public_html/builds/binaries/$TARBALL
+
+cd "$INSTDIR" && ln -s usr/local "$TARBALL"
+cd "$INSTDIR" && tar hcf "$TARBALL.tar.xz" "$TARBALL"
+ssh dev-01 mkdir -p $PUSHDIR
+cd "$INSTDIR" && scp "$TARBALL.tar.xz" dev-01:"$PUSHDIR"