blob: 9cbef7433a4be7aec6beab96f85a205ddfcb5abc (
plain) (
tree)
|
|
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
shopt -s inherit_errexit lastpipe
test_build() {
docker-compose build --progress plain --pull "$@"
}
test_build_clang() {
echo ----------------------------------------------------------------------
echo Building w/ clang
echo ----------------------------------------------------------------------
echo
test_build --build-arg C_COMPILER=clang
}
test_build_gcc() {
echo ----------------------------------------------------------------------
echo Building w/ gcc
echo ----------------------------------------------------------------------
echo
test_build --build-arg C_COMPILER=gcc
}
main() {
test_build_clang
test_build_gcc
}
main
|