-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·21 lines (18 loc) · 935 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
MACOS_TESTS="Passed"
LINUX_TESTS_LATEST="Passed"
LINUX_TESTS_5_1="Passed"
LINUX_TESTS_5_2="Passed"
LINUX_TESTS_5_3="Passed"
swift package clean
swift test || MACOS_TESTS="Failed"
docker build --build-arg CACHEBUST=$(date +%s) --tag=integer128-tests:$(date +%s) -f Dockerfile . || LINUX_TESTS_LATEST="Failed"
docker build --build-arg CACHEBUST5_3=$(date +%s) --tag=integer128-tests-5-3:$(date +%s) -f Dockerfile-5.3 . || LINUX_TESTS_5_3="Failed"
docker build --build-arg CACHEBUST5_2=$(date +%s) --tag=integer128-tests-5-2:$(date +%s) -f Dockerfile-5.2 . || LINUX_TESTS_5_2="Failed"
docker build --build-arg CACHEBUST5_1=$(date +%s) --tag=integer128-tests-5-1:$(date +%s) -f Dockerfile-5.1 . || LINUX_TESTS_5_1="Failed"
echo
echo macOS tests ${MACOS_TESTS}
echo Linux latest tests ${LINUX_TESTS_LATEST}
echo Linux 5.3 tests ${LINUX_TESTS_5_1}
echo Linux 5.2 tests ${LINUX_TESTS_5_2}
echo Linux 5.1 tests ${LINUX_TESTS_5_3}