Skip to content

Commit 3ab0515

Browse files
committed
260221.231915.CET [skip ci] update .cirrus.yml
1 parent bf8a349 commit 3ab0515

1 file changed

Lines changed: 32 additions & 55 deletions

File tree

.cirrus.yml

Lines changed: 32 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,7 @@ task:
99

1010
timeout_in: 120m # There is a hard limit of 2 hours for free tasks.
1111

12-
matrix:
13-
- name: AMD64 FreeBSD
14-
freebsd_instance:
15-
image_family: freebsd-14-0
16-
architecture: amd64
17-
18-
# The following seems not available as of 20240409. See
19-
# https://github.com/cirruslabs/cirrus-ci-docs/issues/906
20-
# https://cirrus-ci.com/task/6720657520590848
21-
# - name: ARM64 FreeBSD
22-
# freebsd_instance:
23-
# image_family: freebsd-14-0
24-
# architecture: arm64
25-
26-
- name: MacOS Silicon
27-
macos_instance:
28-
image: ghcr.io/cirruslabs/macos-sonoma-base:latest
29-
30-
- name: AMD64 Ubuntu
31-
container:
32-
image: ubuntu:latest
33-
34-
- name: ARM64 Ubuntu
35-
arm_container:
36-
image: ubuntu:latest
37-
12+
matrix: # We test the platforms not available on GitHub Actions.
3813
- name: AMD64 Debian
3914
container:
4015
image: debian:latest
@@ -51,53 +26,55 @@ task:
5126
arm_container:
5227
image: fedora:latest
5328

54-
# - name: AMD64 Alpine
55-
# container:
56-
# image: alpine:latest
29+
- name: AMD64 FreeBSD
30+
freebsd_instance:
31+
image_family: freebsd-14-0
32+
architecture: amd64
33+
34+
# The following seems not available as of 20240409. See
35+
# https://github.com/cirruslabs/cirrus-ci-docs/issues/906
36+
# https://cirrus-ci.com/task/6720657520590848
37+
# - name: ARM64 FreeBSD
38+
# freebsd_instance:
39+
# image_family: freebsd-14-0
40+
# architecture: arm64
5741

58-
# - name: ARM64 Alpine
59-
# arm_container:
60-
# image: alpine:latest
42+
- name: AMD64 Alpine
43+
container:
44+
image: alpine:latest
45+
46+
- name: ARM64 Alpine
47+
arm_container:
48+
image: alpine:latest
6149

6250

6351
dependencies_script: |
64-
set -e
6552
set -x
53+
set -euo pipefail
6654
6755
echo "MK=make" >> $CIRRUS_ENV
6856
6957
uname -a
70-
71-
if [ -f /etc/os-release ] ; then
72-
cat /etc/os-release
73-
fi
58+
cat /etc/os-release || true
7459
7560
if [ "$(uname)" == "FreeBSD" ] ; then
7661
pkg update && pkg upgrade -y && pkg install -y bash gcc git cmake devel/gmake devel/gdb
7762
echo "MK=gmake" >> $CIRRUS_ENV
78-
elif [ "$(uname)" == "Darwin" ] ; then
79-
brew update && brew upgrade && brew install gcc git make cmake
8063
elif grep -qi "fedora" /etc/os-release ; then
8164
dnf upgrade -y && dnf install -y gcc git make cmake gfortran gdb libasan libubsan
82-
#elif grep -qi "alpine" /etc/os-release ; then
83-
#apk update && apk upgrade && apk add musl-dev gcc git make cmake gfortran gdb
65+
elif grep -qi "alpine" /etc/os-release ; then
66+
apk update && apk upgrade && apk add musl-dev gcc git make cmake gfortran gdb
8467
else
8568
apt update && apt upgrade -y && apt install -y gcc git make cmake gfortran gdb
8669
fi
8770
88-
type gcc
89-
gcc --version
90-
type gfortran
91-
gfortran --version
92-
type cmake
93-
cmake --version
94-
if [ ! "$(uname)" == "Darwin" ] ; then
95-
type gdb
96-
gdb --version
97-
fi
71+
type gcc && gcc --version
72+
type gfortran && gfortran --version
73+
type cmake && cmake --version
74+
type gdb && gdb --version
9875
9976
100-
test_script: |
77+
fortran_example_script: |
10178
ROOT_DIR=$(git rev-parse --show-toplevel)
10279
for SOLVER in uobyqa newuoa bobyqa lincoa cobyla ; do
10380
cd $ROOT_DIR/fortran/examples/$SOLVER
@@ -130,7 +107,7 @@ task:
130107
ROOT_DIR=$(git rev-parse --show-toplevel)
131108
cd $ROOT_DIR/fortran/tests
132109
133-
# Decide a random solver to test by $(date + %N)
110+
# Decide the solver to test by $(date + %N)
134111
SOLVER_NUM=$(($(date +%N) % 5))
135112
if [ $SOLVER_NUM -eq 0 ] ; then
136113
SOLVER=uobyqa
@@ -145,11 +122,11 @@ task:
145122
fi
146123
echo $SOLVER_NUM $SOLVER
147124
148-
# Decide a random integer kind to test by $(date +%N)
125+
# Decide the integer kind to test by $(date +%N)
149126
IK=$((2**($(date +%N) % 3 + 1)))
150127
echo $IK
151128
152-
# Decide a random real kind to test by $(date +%N)
129+
# Decide the real kind to test by $(date +%N)
153130
RK=$((2**($(date +%N) % 3 + 2)))
154131
echo $RK
155132

0 commit comments

Comments
 (0)