Skip to content

Commit

Permalink
240421.220154.HKT revise .cirrus.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Apr 21, 2024
1 parent d7ebc1b commit 47d8bce
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ task:
ROOT_DIR=$(git rev-parse --show-toplevel)
cd $ROOT_DIR/fortran/tests
# Decide the solver to test by date
SOLVER_NUM=$(($(date +%-d) % 5))
# Decide a random solver to test by $(date + %N)
SOLVER_NUM=$(($(date +%N) % 5))
if [ $SOLVER_NUM -eq 0 ] ; then
SOLVER=uobyqa
elif [ $SOLVER_NUM -eq 1 ] ; then
Expand All @@ -145,11 +145,15 @@ task:
fi
echo $SOLVER_NUM $SOLVER
# Decide the real kind by date
RK=$((2**($(date +%-d) % 3 + 2)))
# Decide a random integer kind to test by $(date +%N)
IK=$((2**($(date +%N) % 3 + 1)))
echo $IK
# Decide a random real kind to test by $(date +%N)
RK=$((2**($(date +%N) % 3 + 2)))
echo $RK
$MK clean && $MK gtest_i2_r${RK}_d1_tst.$SOLVER
$MK clean && $MK gtest_i${IK}_r${RK}_d1_tst.$SOLVER
on_failure:

0 comments on commit 47d8bce

Please sign in to comment.