mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
25 lines
479 B
Bash
Executable file
25 lines
479 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
set -x
|
|
|
|
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
|
|
# Before we run the build, get gitversion and generate a version.json.
|
|
dotnet tool install -g GitVersion.Tool --version 5.3.4
|
|
export PATH="$PATH:$HOME/.dotnet/tools"
|
|
dotnet gitversion > version.json
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
|
|
$SCRIPT_DIR/travis.linux.sh
|
|
|
|
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
|
|
$SCRIPT_DIR/travis.osx.sh
|
|
|
|
else
|
|
|
|
echo "Unsupported os."
|
|
exit 1
|
|
|
|
fi
|