travis: Use hide_output
in dist-powerpc64-linux
Looks like we blew the 4MB cap, so let's hide some more output.
This commit is contained in:
parent
ec829fe00e
commit
bbfdb56910
4 changed files with 36 additions and 24 deletions
|
@ -61,7 +61,7 @@ USER rustbuild
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
|
|
||||||
COPY patches/ /tmp/patches/
|
COPY patches/ /tmp/patches/
|
||||||
COPY powerpc64-linux-gnu.config build-powerpc64-toolchain.sh /tmp/
|
COPY shared.sh powerpc64-linux-gnu.config build-powerpc64-toolchain.sh /tmp/
|
||||||
RUN ./build-powerpc64-toolchain.sh
|
RUN ./build-powerpc64-toolchain.sh
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
|
@ -11,22 +11,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
hide_output() {
|
source shared.sh
|
||||||
set +x
|
|
||||||
on_err="
|
|
||||||
echo ERROR: An error was encountered with the build.
|
|
||||||
cat /tmp/build.log
|
|
||||||
exit 1
|
|
||||||
"
|
|
||||||
trap "$on_err" ERR
|
|
||||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
|
||||||
PING_LOOP_PID=$!
|
|
||||||
$@ &> /tmp/build.log
|
|
||||||
rm /tmp/build.log
|
|
||||||
trap - ERR
|
|
||||||
kill $PING_LOOP_PID
|
|
||||||
set -x
|
|
||||||
}
|
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
source shared.sh
|
||||||
|
|
||||||
BINUTILS=2.25.1
|
BINUTILS=2.25.1
|
||||||
GCC=5.3.0
|
GCC=5.3.0
|
||||||
TARGET=powerpc64le-linux-gnu
|
TARGET=powerpc64le-linux-gnu
|
||||||
|
@ -40,9 +42,9 @@ pushd binutils-$TARGET
|
||||||
curl https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS.tar.bz2 | tar xjf -
|
curl https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS.tar.bz2 | tar xjf -
|
||||||
mkdir binutils-build
|
mkdir binutils-build
|
||||||
cd binutils-build
|
cd binutils-build
|
||||||
../binutils-$BINUTILS/configure --target=$TARGET --with-sysroot=$SYSROOT
|
hide_output ../binutils-$BINUTILS/configure --target=$TARGET --with-sysroot=$SYSROOT
|
||||||
make -j10
|
hide_output make -j10
|
||||||
make install
|
hide_output make install
|
||||||
popd
|
popd
|
||||||
rm -rf binutils-$TARGET
|
rm -rf binutils-$TARGET
|
||||||
|
|
||||||
|
@ -51,11 +53,11 @@ mkdir gcc-$TARGET
|
||||||
pushd gcc-$TARGET
|
pushd gcc-$TARGET
|
||||||
curl https://ftp.gnu.org/gnu/gcc/gcc-$GCC/gcc-$GCC.tar.bz2 | tar xjf -
|
curl https://ftp.gnu.org/gnu/gcc/gcc-$GCC/gcc-$GCC.tar.bz2 | tar xjf -
|
||||||
cd gcc-$GCC
|
cd gcc-$GCC
|
||||||
./contrib/download_prerequisites
|
hide_output ./contrib/download_prerequisites
|
||||||
|
|
||||||
mkdir ../gcc-build
|
mkdir ../gcc-build
|
||||||
cd ../gcc-build
|
cd ../gcc-build
|
||||||
../gcc-$GCC/configure \
|
hide_output ../gcc-$GCC/configure \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--target=$TARGET \
|
--target=$TARGET \
|
||||||
--with-cpu=power8 \
|
--with-cpu=power8 \
|
||||||
|
@ -72,8 +74,8 @@ cd ../gcc-build
|
||||||
--disable-libsanitizer \
|
--disable-libsanitizer \
|
||||||
--disable-libquadmath-support \
|
--disable-libquadmath-support \
|
||||||
--disable-lto
|
--disable-lto
|
||||||
make -j10
|
hide_output hide_output make -j10
|
||||||
make install
|
hide_output make install
|
||||||
|
|
||||||
popd
|
popd
|
||||||
rm -rf gcc-$TARGET
|
rm -rf gcc-$TARGET
|
||||||
|
|
25
src/ci/docker/dist-powerpc64-linux/shared.sh
Normal file
25
src/ci/docker/dist-powerpc64-linux/shared.sh
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
|
hide_output() {
|
||||||
|
set +x
|
||||||
|
on_err="
|
||||||
|
echo ERROR: An error was encountered with the build.
|
||||||
|
cat /tmp/build.log
|
||||||
|
exit 1
|
||||||
|
"
|
||||||
|
trap "$on_err" ERR
|
||||||
|
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||||
|
PING_LOOP_PID=$!
|
||||||
|
$@ &> /tmp/build.log
|
||||||
|
trap - ERR
|
||||||
|
kill $PING_LOOP_PID
|
||||||
|
set -x
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue