Skip to content

Commit

Permalink
fixing some coverage issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Jun 28, 2024
1 parent 1af049e commit 6aa6800
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci/build_matrix.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

# List of versions
versions=(
# if added more "latest", change "$LATEST"
Expand All @@ -17,23 +19,22 @@ versions=(
'v22.2-ubuntu'
)


LATEST=2 # for 'latest-ubuntu' and 'latest-ubuntu-student'

# Run only ubuntu jobs
ONLY_UBUNTU="${ONLY_UBUNTU:-false}"

# Do not process more than the $AUTH_USER_LIMIT_VERSIONS versions in above list
AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-3}"
AUTH_USER_LIMIT=$(($LATEST+$AUTH_USER_LIMIT_VERSIONS*3))
AUTH_USER_LIMIT=$((LATEST+AUTH_USER_LIMIT_VERSIONS*3))

# Students licenses only last a year, hence $NON_AUTH_USER_LIMIT_VERSIONS cannot be more than 2.
NON_AUTH_USER_LIMIT_VERSIONS="${NON_AUTH_USER_LIMIT_VERSIONS:-2}"
NON_AUTH_USER_LIMIT=$(($LATEST+$NON_AUTH_USER_LIMIT_VERSIONS*3))
NON_AUTH_USER_LIMIT=$((LATEST+NON_AUTH_USER_LIMIT_VERSIONS*3))

# Hard limit version. Generally do not process more than $HARD_LIMIT_VERSION
LIMIT_VERSIONS="${LIMIT_VERSIONS:-0}"
HARD_LIMIT_VERSION=$(($LATEST+$LIMIT_VERSIONS*3))
HARD_LIMIT_VERSION=$((LATEST+LIMIT_VERSIONS*3))

# Checking if extended testing must be done
#
Expand Down Expand Up @@ -131,7 +132,7 @@ if [[ $JSON == *, ]]; then
JSON="${JSON%?}"
fi
JSON="$JSON]}"
echo $JSON
echo "$JSON"

# Set output
echo "matrix=$( echo "$JSON" )" >> $GITHUB_OUTPUT

0 comments on commit 6aa6800

Please sign in to comment.