forked from BRAINSia/BRAINSTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis_build_script.sh
executable file
·39 lines (32 loc) · 1001 Bytes
/
.travis_build_script.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
#!/usr/bin/env bash
# -e: fail on error
# -v: show commands
# -x: show expanded commands
set -vex
SOURCE_DIR=$(pwd)
BUILD_DIR=${SOURCE_DIR}/cmake-travis-bld
mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
cmake \
-DCMAKE_CXX_STANDARD:STRING=11 \
-DUSE_ANTS=BOOL=OFF \
-DBRAINSTools_REQUIRES_VTK=OFF \
-DUSE_BRAINSABC:BOOL=OFF \
-DUSE_BRAINSDWICleanup:BOOL=OFF \
-DUSE_BRAINSInitializedControlPoints:BOOL=OFF \
-DUSE_BRAINSLabelStats:BOOL=OFF \
-DUSE_BRAINSLandmarkInitializer:BOOL=OFF \
-DUSE_BRAINSROIAuto:BOOL=OFF \
-DUSE_BRAINSRefacer:BOOL=OFF \
-DUSE_BRAINSResample:BOOL=OFF \
-DUSE_BRAINSSnapShotWriter:BOOL=OFF \
-DUSE_BRAINSStripRotation:BOOL=OFF \
-DUSE_BRAINSTransformConvert:BOOL=OFF \
-DUSE_ConvertBetweenFileFormats:BOOL=OFF \
-DUSE_ImageCalculator:BOOL=OFF \
-DUSE_ReferenceAtlas:BOOL=OFF \
${SOURCE_DIR}
#make -j 2 # BUILD EVERYTHING: INFO: BUILD_SUPPORT_SEPARATE.
make -j 2
cd ${BUILD_DIR}/BRAINSTools-build/
make test