-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.osx.yml
75 lines (69 loc) · 2.62 KB
/
.travis.osx.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: objective-c
env:
matrix:
- CMAKE_CXX_COMPILER=g++-4.9 CMAKE_C_COMPILER=gcc-4.9
CMAKE_BUILD_TYPE=Release
CTEST=TRUE
- CMAKE_CXX_COMPILER=g++-4.9 CMAKE_C_COMPILER=gcc-4.9
CMAKE_BUILD_TYPE=Debug
CTEST=TRUE
- CMAKE_CXX_COMPILER=clang++ CMAKE_C_COMPILER=clang
CMAKE_BUILD_TYPE=Release
CTEST=TRUE
- CMAKE_CXX_COMPILER=clang++ CMAKE_C_COMPILER=clang
CMAKE_BUILD_TYPE=Debug
CTEST=TRUE
install:
- brew update
- brew upgrade
- brew --config
- brew --env
- if [[ ${CMAKE_CXX_COMPILER} == g++-4.9 ]]; then
brew install gcc || true;
brew link gcc || true;
COMPILER=`${CMAKE_CXX_COMPILER} --version | head -n 1 | grep -Eo '([^ ]|\\ )*$'`;
fi
- if [[ ${CMAKE_CXX_COMPILER} == clang++ ]]; then
wget https://dl.dropboxusercontent.com/u/203889738/gcc/clang+llvm-3.4.1-x86_64-apple-darwin10.9.tar.xz;
sudo tar xfz clang+llvm-3.4.1-x86_64-apple-darwin10.9.tar.xz -C /;
sudo chown -R `whoami` /usr/bin;
export LIBRARY_PATH=/usr/lib:/usr/local/lib;
COMPILER=clang++-3.4.1;
fi
# autoconf automake cmake libtool pkg-config
- brew install autoconf automake cmake ninja libtool pkg-config || true
before_script:
- SITE=OSX10.9.2@Travis
- BUILD_NAME=${TRAVIS_BRANCH}_${COMPILER}_${CMAKE_BUILD_TYPE}
- GIT_SUBJECT=`git log HEAD~ --oneline -n 1 | cut -d ' ' -f 2-`
- GIT_SUBJECT=${GIT_SUBJECT//\"/\\\"}
- GIT_SUBJECT=${GIT_SUBJECT//,/\,}
- GIT_SUBJECT=$(echo -e $(printf '%q' "$GIT_SUBJECT"))
script:
# compile drio
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -G Ninja ../src
- CONFIG_FILE=DartConfiguration.tcl
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
- ctest -D ExperimentalConfigure
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
- ctest -D ExperimentalBuild -VV
- cd ..
after_script:
- cd build
- if [[ $CTEST == TRUE ]]; then
ctest -D ExperimentalTest -L normal --timeout 250 -VV;
fi
- find Testing -name "*.xml" -exec sed -i "" "s,Generator=\".*\",Generator=\"${TRAVIS_COMMIT}###${GIT_SUBJECT}\"," {} ";"
- find Testing \( -name "LastTest_*.log" -o -name "LastDynamicAnalysis_*.log" \) -exec sh -c 'TMP=`mktemp /tmp/ctesttmp_XXXX`; ../script/demangle_cpptype.py {} > $TMP; mv -v $TMP {}' ";"
- ctest -D ExperimentalSubmit
- cd ..
notifications:
email:
recipients:
- drio-build@googlegroups.com
on_success: change
on_failure: always