-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcheck_roms.sh
More file actions
48 lines (39 loc) · 1.09 KB
/
check_roms.sh
File metadata and controls
48 lines (39 loc) · 1.09 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
set -o pipefail
cleanup() {
echo "Cleaning up files"
make tidy DATA=1 > /dev/null
rm -f err.log
}
trap cleanup EXIT
regions=("us" "eu" "jp" "us_beta" "eu_beta")
for region in "${regions[@]}"; do
echo "---- Building for REGION=$region ----"
echo "* Running: make tidy DATA=1"
if ! make tidy DATA=1 > /dev/null 2>err.log; then
echo "make tidy failed"
cat err.log
exit 1
fi
echo "* Running: python3 tools/extractor.py -r $region"
if ! python3 tools/extractor.py -r "$region" > /dev/null 2>err.log; then
echo "extractor failed for REGION=$region"
cat err.log
exit 1
fi
echo "* Running: make $region -j"
if ! make "$region" -j > /dev/null 2>err.log; then
echo "make $region failed"
cat err.log
exit 1
fi
echo "* Running: make check REGION=$region"
if ! make check REGION="$region" > /dev/null 2>err.log; then
echo "make check failed for REGION=$region"
cat err.log
exit 1
fi
echo "REGION=$region built successfully!"
echo
done