-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathvalidate.sh
More file actions
executable file
·29 lines (23 loc) · 784 Bytes
/
validate.sh
File metadata and controls
executable file
·29 lines (23 loc) · 784 Bytes
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
#!/bin/bash
echo "Update the repository..."
git pull
echo "Validation script..."
# for all instances in input
for var in $@
do
echo "$var Instance started"
python3 validation_heuristic.py -i "instance_generator/instances/$var/" > "instance_generator/instances/$var/out.txt" &
done
# Wait for all tasks to complete
wait
echo "All tasks completed."
for var in $@
do
echo "$var Instance Post-processing"
python3 instance_generator/stats_to_csv.py -f "instance_generator/instances/$var/out_heuristic" > "instance_generator/instances/$var/stats.txt"
python3 instance_generator/generate_graph.py -f "instance_generator/instances/$var/out_heuristic"
done
echo "Push results to the repository..."
git add *
git commit -m "Validation - Autocommit Pipeline"
git push