Linux ci jobs no use environment variables instead of positional parameters

This commit is contained in:
Johannes Lenzen
2021-02-09 11:31:21 +01:00
parent c69e8bbc1d
commit 7cc8cd0bf4
5 changed files with 141 additions and 27 deletions

View File

@@ -1,11 +1,5 @@
#!/bin/bash
COMPILER=$1
LANGUAGE=$2
BUILD_TYPE=$3
QTVERSION=$4
IWYU=$5
# Exit script on any error
set -e
@@ -86,7 +80,7 @@ else
BUILDPATH="$BUILDPATH-debug"
fi
if [ "$IWYU" == "IWYU" ]; then
if [ "$IWYU" == "yes" ]; then
echo "Include what you use enabled.";
BUILDPATH="$BUILDPATH-iwyu"
OPTIONS="$OPTIONS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"