Skip to content

Commit

Permalink
ci: skipping student versions when user is authenticated (#3564)
Browse files Browse the repository at this point in the history
* ci: skipping student versions when user is authenticated

* chore: adding changelog file 3564.maintenance.md [dependabot-skip]

* fix: missing space

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
  • Loading branch information
germa89 and pyansys-ci-bot authored Nov 22, 2024
1 parent 9cdcaaa commit a4510f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .ci/build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ LATEST=3 # for 'latest-ubuntu' and 'latest-ubuntu-student'
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_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-2}"
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.
Expand Down Expand Up @@ -87,13 +87,20 @@ for version in "${versions[@]}"; do
echo " - Student: $ON_STUDENT"
echo " - Ubuntu: $ON_UBUNTU"

# Early exiting if on Ubuntu only
# Skipping if on Ubuntu only
if [[ "$ON_UBUNTU" != "true" && "$ONLY_UBUNTU" == "true" ]]; then
echo "Skipping non-ubuntu versions"
echo ""
continue
fi

# Skipping student versions on auth_user
if [[ "$auth_user" == "true" && "$ON_STUDENT" == "true" ]]; then
echo "Skipping student versions when user is authenticated"
echo ""
continue
fi

# main logic
if [[ "$auth_user" == "true" ]]; then
if [[ "$extended_testing" == "true" ]]; then
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3564.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: skipping student versions when user is authenticated

0 comments on commit a4510f7

Please sign in to comment.