-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·30 lines (25 loc) · 824 Bytes
/
Copy pathrun-tests.sh
File metadata and controls
executable file
·30 lines (25 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
set -euo pipefail
UBUNTU_VERSIONS=(18.04 20.04 22.04)
TOOLCHAINS=(gcc clang mingw)
# Args: UBUNTU_VERSIONS... -- TOOLCHAINS...
if (($#)); then
UBUNTU_VERSIONS=()
TOOLCHAINS=()
mode=vers
for a in "$@"; do
[[ "$a" == "--" ]] && { mode=comp; continue; }
[[ $mode == vers ]] && UBUNTU_VERSIONS+=("$a") || TOOLCHAINS+=("$a")
done
fi
PACKAGE_DIR=./artifacts/packages/current docker compose run --rm build-musl
PACKAGE_DIR=./artifacts/packages/current docker compose run --rm build-cosmo
for toolchain in "${TOOLCHAINS[@]}"; do
TOOLCHAIN="$toolchain" docker compose run --rm test-alpine
done
for version in "${UBUNTU_VERSIONS[@]}"; do
for toolchain in "${TOOLCHAINS[@]}"; do
UBUNTU_VERSION="$version" TOOLCHAIN="$toolchain" \
docker compose run --rm test-ubuntu
done
done