|
96 | 96 | uname -a |
97 | 97 | cat /etc/os-release || true |
98 | 98 |
|
99 | | - if [[ "$(uname)" == FreeBSD ]] ; then |
| 99 | + if [ "$(uname)" = FreeBSD ] ; then |
100 | 100 | pkg update && pkg upgrade -y && pkg install -y bash gcc git cmake devel/gmake devel/gdb |
101 | 101 | echo "MK=gmake" >> $CIRRUS_ENV |
102 | 102 | elif grep -qi "fedora" /etc/os-release ; then |
@@ -124,11 +124,11 @@ task: |
124 | 124 |
|
125 | 125 | cmake_test_script: | |
126 | 126 |
|
127 | | - if [[ "$(uname)" == FreeBSD ]] ; then |
| 127 | + if [ "$(uname)" = FreeBSD ] ; then |
128 | 128 | echo "WARNING: CMake test is skipped on FreeBSD." >&2 |
129 | 129 | echo "The current CMake test is with gcc only; should test FreeBSD with Clang/LLVM." >&2 |
130 | 130 | exit 0 |
131 | | - elif [[ "$(arch)" == x86_64 ]] && grep -qi "alpine" /etc/os-release ; then |
| 131 | + elif [ "$(uname -m)" = x86_64 ] && grep -qi "alpine" /etc/os-release ; then |
132 | 132 | echo "WARNING: CMake test is skipped on AMD64 Alpine." >&2 |
133 | 133 | echo "The current CMake test fails on AMD64 Alpine; should investigate the issue and fix it." >&2 |
134 | 134 | exit 0 |
@@ -160,13 +160,13 @@ task: |
160 | 160 | NS=$(date +%N) |
161 | 161 | NS=${NS#"${NS%%[!0]*}"} # Strip leading zeros, or the shell will interpret the number as octal and fail if it contains digits 8 or 9. |
162 | 162 | SOLVER_NUM=$((${NS:-0} % 5)) # Use 0 if completely empty |
163 | | - if [[ $SOLVER_NUM -eq 0 ]] ; then |
| 163 | + if [ $SOLVER_NUM -eq 0 ] ; then |
164 | 164 | SOLVER=uobyqa |
165 | | - elif [[ $SOLVER_NUM -eq 1 ]] ; then |
| 165 | + elif [ $SOLVER_NUM -eq 1 ] ; then |
166 | 166 | SOLVER=newuoa |
167 | | - elif [[ $SOLVER_NUM -eq 2 ]] ; then |
| 167 | + elif [ $SOLVER_NUM -eq 2 ] ; then |
168 | 168 | SOLVER=bobyqa |
169 | | - elif [[ $SOLVER_NUM -eq 3 ]] ; then |
| 169 | + elif [ $SOLVER_NUM -eq 3 ] ; then |
170 | 170 | SOLVER=lincoa |
171 | 171 | else |
172 | 172 | SOLVER=cobyla |
|
0 commit comments