-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sh
executable file
·51 lines (38 loc) · 1.27 KB
/
build.sh
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
49
50
51
#!/bin/bash
set -x
set -o errexit
set -o nounset
set -o pipefail
rm -rf out/
mkdir -p out/data/
echo "Updating results-analysis-cache.git/"
cd results-analysis-cache.git/
git fetch --all --tags
cd ../
# Scoring scripts may require more memory than the default.
export NODE_OPTIONS="--max-old-space-size=8192"
TO_DATE=$(date -d "tomorrow 13:00" '+%Y-%m-%d')
node git-write.js --max-time=300 --max-age-days=5
update_bsf_csv() {
local OUTPUT="${1}"
local FROM_DATE="2018-06-01"
local EXPERIMENTAL_FLAG=""
if [[ $1 == *"experimental"* ]]; then
EXPERIMENTAL_FLAG="--experimental"
fi
node browser-specific-failures.js \
${EXPERIMENTAL_FLAG} --from=${FROM_DATE} --to=${TO_DATE} \
--output=${OUTPUT}
}
update_bsf_csv out/data/stable-browser-specific-failures.csv
update_bsf_csv out/data/experimental-browser-specific-failures.csv
update_interop_year() {
local YEAR="${1}"
local PRODUCTS="${2}"
mkdir -p out/data/interop-${YEAR}/
node interop-scoring/main.js --year=${YEAR} --to=${TO_DATE} --products=${PRODUCTS}
node interop-scoring/main.js --year=${YEAR} --to=${TO_DATE} --products=${PRODUCTS} --experimental
mv interop-${YEAR}-*.csv out/data/interop-${YEAR}/
}
update_interop_year 2023 chrome,firefox,safari
update_interop_year 2024 chrome,edge,firefox,safari