-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure_CI.sh
executable file
·46 lines (42 loc) · 1.12 KB
/
configure_CI.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
#!/bin/bash
# configuration for the CI runner
# clone repositories
repo_list="epic EDM4eic irt EICrecon reconstruction_benchmarks"
if [ $# -gt 0 ]; then repo_list=$*; fi
echo "[CI] CLONING REPOSITORIES: $repo_list"
for repo in $repo_list; do
case $repo in
epic)
git clone https://github.com/eic/epic.git --branch main
;;
EDM4eic)
git clone https://github.com/eic/EDM4eic.git --branch v4.0.0
;;
irt)
git clone https://github.com/eic/irt.git --branch main
;;
EICrecon)
git clone https://github.com/eic/EICrecon.git --branch main
;;
reconstruction_benchmarks)
git clone https://eicweb.phy.anl.gov/EIC/benchmarks/reconstruction_benchmarks.git --branch master
;;
none)
echo "Not cloning any repositories"
;;
*)
echo "ERROR: unknown repository '$repo'"
exit 1
;;
esac
done
exit
# list files in the current directory
echo "[CI] ls -t $(pwd)"
ls -ltp
# list files in the installation tree
echo "[CI] PREFIX TREE"
[ -d "prefix" ] && find prefix || echo "no prefix tree"
# check git branches
echo "[CI] BRANCHES"
check_branches.sh