#!/bin/bash
# Copyright 2015 The html5ever Project Developers. See the
# COPYRIGHT file at the top-level directory of this distribution.
#
# 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.

set -ex

mkdir build
cd build
../configure
make check docs for_c | ../scripts/shrink-test-output.py

#!/bin/bash
# Copyright 2015 The html5ever Project Developers. See the
# COPYRIGHT file at the top-level directory of this distribution.
#
# 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.

set -ex

mkdir build
cd build
../configure
make check docs for_c | ../scripts/shrink-test-output.py
exit ${PIPESTATUS[0]}

Make sure the Travis build fails when compiling fails
Make sure the Travis build fails when compiling fails

Piping `make`'s output through `shrink-test-output.py` was swallowing
`make`'s exit code. Now we explicitly use its exit code for the overall
result of the build.
