This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.osx.yml
95 lines (89 loc) · 3.22 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: objective-c
env:
matrix:
- CMAKE_CXX_COMPILER=g++-4.9 CMAKE_C_COMPILER=gcc-4.9
CMAKE_BUILD_TYPE=Release
CTEST=TRUE
CPACK=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 --config
- brew --env
- if [[ ${CMAKE_CXX_COMPILER} == g++-4.9 ]]; then
brew install gcc;
brew link gcc;
COMPILER=g++-4.9.2;
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 -- already installed
- brew install ninja
# X11 - Xquartz
# ocaml, opam, ocamlfind, ocaml-batteries
- if [[ ${CPACK} == TRUE ]]; then
curl -OL "http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.6.dmg" &&
hdiutil attach XQuartz-2.7.6.dmg &&
sudo installer -verbose -pkg /Volumes/XQuartz-2.7.6/XQuartz.pkg -target / &&
brew update &&
brew install re2c libffi objective-caml camlp4 xz gringo scons bison &&
brew upgrade boost cmake &&
brew install --build-from-source opam &&
yes | opam init &&
eval `opam config env` &&
opam update &&
opam install ocamlfind batteries oasis --yes;
fi
before_script:
- SITE=OSX10.9.5@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 dReal
- 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
# compile tools
- if [[ ${CPACK} == TRUE ]]; then
make -C ../tools;
cpack;
fi
- cd ..
notifications:
email:
recipients:
on_success: change
on_failure: always