Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 51e7587

Browse files
committed
buildbot: Archive successful builds.
Successful builds are tarred up and placed in /opt/ykrustc-bin-snapshots on the build master. For now, store at most one archive, but we might change that in the future.
1 parent 6e62d50 commit 51e7587

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.buildbot.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,23 @@
22
#
33
# Build script for continuous integration.
44

5+
set -e
6+
57
# Ensure the build fails if it uses excessive amounts of memory.
68
ulimit -d $((1024 * 1024 * 8)) # 8 GiB
79

810
# Note that the gdb must be Python enabled.
911
/usr/bin/time -v env PATH=/opt/gdb-8.2/bin:${PATH} \
1012
RUST_BACKTRACE=1 ./x.py test --config .buildbot.toml
13+
14+
# Archive the build and put it in /opt
15+
TARBALL_TOPDIR=ykrustc-stage2
16+
TARBALL_NAME=ykrustc-stage2-latest.tar.bz2
17+
SNAP_DIR=/opt/ykrustc-bin-snapshots
18+
19+
cd build/x86_64-unknown-linux-gnu
20+
ln -sf stage2 ${TARBALL_TOPDIR}
21+
git show -s HEAD > ${TARBALL_TOPDIR}/VERSION
22+
tar hjcvf ${TARBALL_NAME} ${TARBALL_TOPDIR}
23+
chmod 775 ${TARBALL_NAME}
24+
mv ${TARBALL_NAME} ${SNAP_DIR} # Overwrites any old archive.

0 commit comments

Comments
 (0)