-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·59 lines (52 loc) · 1.06 KB
/
run.sh
File metadata and controls
executable file
·59 lines (52 loc) · 1.06 KB
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
55
56
57
58
59
#!/bin/bash
if [ "$1" = "clean" ]; then
make distclean
echo "cleaning"
fi
if [ "$1" = "" ]; then
echo "release, debug, profile, ci, cli"
fi
if [ "$1" = "release" ]; then
make distclean
set -e
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
bin/fasttrack
fi
if [ "$1" = "debug" ]; then
set -e
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Wall -Wextra -g -Wconversion" ..
make
make check
bin/fasttrack
fi
if [ "$1" = "profile" ]; then
set -e
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-pg" -DCMAKE_EXE_LINKER_FLAGS="-pg" ..
make
make check
bin/fasttrack
gprof bin/fasttrack bin/gmon.out > profiling.txt
fi
if [ "$1" = "ci" ]; then
make distclean
set -e
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DSKIP_TEST=ON ../
make
fi
if [ "$1" = "ci_clang" ]; then
make distclean
set -e
mkdir -p build
cd build
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DSKIP_TEST=ON ../
make
fi