-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.sh
54 lines (44 loc) · 839 Bytes
/
main.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
52
53
54
#!/usr/bin/env bash
set -euo pipefail
set +x
this="${BASH_SOURCE:-$0}"
this_dir=$(cd -P -- "$(dirname -- "${this}")" && pwd -P)
die() {
echo $1 1>&2
exit 1
}
nargs=1
if [ $# -ne ${nargs} ]; then
die "Usage: $0 CSTYPE (e.g., $0 cpu)"
fi
cstype=$1
pushd "${this_dir}/${cstype}"
if [ -z ${SKIP_EDDL:-} ]; then
make test-eddl
make upload-eddl
make test-eddl-cloud
else
echo "skipping eddl"
fi
if [ -z ${SKIP_ECVL:-} ]; then
make test-ecvl
make upload-ecvl
make test-ecvl-cloud
else
echo "skipping ecvl"
fi
if [ -z ${SKIP_PYEDDL:-} ]; then
make test-pyeddl
make upload-pyeddl
make test-pyeddl-cloud
else
echo "skipping pyeddl"
fi
if [ -z ${SKIP_PYECVL:-} ]; then
make test-pyecvl
make upload-pyecvl
make test-pyecvl-cloud
else
echo "skipping pyecvl"
fi
popd