-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.sh
More file actions
28 lines (26 loc) · 747 Bytes
/
Copy pathtask.sh
File metadata and controls
28 lines (26 loc) · 747 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
set -e
if [ "$1" == "test" ]; then
if [ "$2" == "d" ] ; then # down
echo "Stopping tests..."
sudo docker compose -f "test.docker-compose.yml" down
exit 0
fi
if [ "$2" == "" ]; then # up
echo "Running tests..."
sudo docker compose -f "test.docker-compose.yml" up -d --build
exit 0
fi
fi
if [ "$1" == "fuzz" ]; then
if [ "$2" == "d" ]; then
echo "Stopping fuzzing..."
sudo docker compose -f "fuzzing.docker-compose.yml" down
exit 0
fi
if [ "$2" == "" ]; then # up
echo "Running fuzzing..."
sudo docker compose -f "fuzzing.docker-compose.yml" up -d --build
exit 0
fi
fi
echo "Usage: ./task.sh test|fuzz [d]" # d for down