31 lines
1023 B
Bash
Executable File
31 lines
1023 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2019 Jacob Hrbek <kreyren@rixotstudio.cz>
|
|
# Distributed under the terms of the GNU General Public License v3 (https://www.gnu.org/licenses/gpl-3.0.en.html) or later
|
|
|
|
# shellcheck source=QA/travis-ci/travis-common.sh
|
|
. "$(dirname "$0")/travis-common.sh"
|
|
|
|
# shellcheck source=QA/travis-ci/get-container.sh
|
|
. "$(dirname "$0")/get-container.sh"
|
|
|
|
# Linux as-is
|
|
if [ "$TRAVIS_OS_NAME" = linux ] && [ -z "$DOCKER" ] && [ -z "$QEMU" ]; then
|
|
make check
|
|
|
|
# Linux via Docker
|
|
elif [ "$TRAVIS_OS_NAME" = linux ] && [ -n "$DOCKER" ] && [ -z "$QEMU" ]; then
|
|
sudo docker exec "$CONTAINER" make --directory="/travis/Kreyrock" check
|
|
|
|
# MacOS X
|
|
elif [ "$TRAVIS_OS_NAME" = osx ]; then
|
|
make --directory="/Users/travis/build/Kreyrock/Kreyrock" check
|
|
|
|
elif [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$QEMU" = "FreeBSD" ]; then
|
|
ssh -p 8829 -oStrictHostKeyChecking=no -i "$HOME/.ssh/id_rsa" root@localhost \
|
|
make check
|
|
|
|
else
|
|
die "Invalid setting of TRAVIS_OS_NAME=$TRAVIS_OS_NAME, DOCKER=$DOCKER, QEMU=$QEMU!"
|
|
|
|
fi
|