blob: 04a0530301495e5c5d2c2e7e28ba11ba2e82739d [file] [log] [blame]
#!/bin/sh
#
# Copyright 2018 Google LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description:
# This file is the script for Travis CI hosted, distributed continuous
# integration 'script' step.
#
die()
{
echo " *** ERROR: " ${*}
exit 1
}
case "${BUILD_TARGET}" in
linux-auto-clang)
./configure && make && make check
;;
linux-auto-gcc-check)
./configure --enable-coverage && make && make check
;;
linux-auto-gcc-check-happy)
# run happy test
sudo bash -c "source ${HOME}/ve/happy/bin/activate; make -f Makefile-Standalone DEBUG=1 TIMESTAMP=1 COVERAGE=1 BuildJobs=24 BLUEZ=1 check"
;;
linux-lwip-clang)
./configure --with-target-network=lwip --with-lwip=internal --disable-java && make
;;
linux-lwip-gcc-check)
# Note, LwIP requires sudo prior to running 'make check' to ensure the appropriate TUN and bridge interfaces
# may be created.
./configure --enable-coverage --with-target-network=lwip --with-lwip=internal --disable-java && make && sudo make check
;;
osx-auto-clang)
./configure && make
;;
osx-lwip-clang)
./configure --with-target-network=lwip --with-lwip=internal --disable-java && make
;;
esp32)
.travis/build_esp32.sh
;;
linux-auto-*-distcheck)
./configure && make distcheck
;;
linux-auto-*-lint)
./configure && make pretty-check
;;
*)
die "Unknown build target \"${BUILD_TARGET}\"."
;;
esac