-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.maketravis.sh
executable file
·49 lines (49 loc) · 1.45 KB
/
.maketravis.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
#!/bin/bash
. configure.sh
UNAME=$(uname)
if [[ $UNAME == "Linux" ]]; then
if [[ $CC == gcc ]]; then
if [[ $TEST_OMP == "yes" ]]; then
## echo "**** GCC RELEASE-ATLAS ****" &&
## make release-atlas &&
echo "**** GCC TEST-DEBUG-ATLAS ****" &&
make test-debug-atlas
else
## echo "**** GCC RELEASE-NO-OMP ****" &&
## make release-no-omp &&
echo "**** GCC TEST-DEBUG-NO-OMP ****" &&
make test-debug-no-omp
fi
elif [[ $CC == clang ]]; then
if [[ $TEST_OMP == "no" ]]; then
## echo "**** CLANG RELEASE-NO-OMP ****" &&
## make release-no-omp &&
echo "**** CLANG TEST-DEBUG-NO-OMP ****" &&
make test-debug-no-omp
else
echo "Unable to run OMP test with clang"
exit 10
fi
else
echo "Unknown variable CC=$CC"
exit 10
fi
elif [[ $UNAME == "Darwin" ]]; then
if [[ $CC == clang ]]; then
if [[ $TEST_OMP == "no" ]]; then
## echo "**** CLANG RELEASE-HOMEBREW ****" &&
## make release-macosx &&
echo "**** CLANG TEST-DEBUG-HOMEBREW ****" &&
make test-debug-homebrew
else
echo "Unable to run OMP test with clang"
exit 10
fi
else
echo "Unknown variable CC=$CC"
exit 10
fi
else
echo "Unknown UNAME=$UNAME"
exit 10
fi