forked from DOCGroup/XSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 1.78 KB
/
.travis.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
group: travis_latest
language: cpp
os:
- linux
compiler:
- gcc
env:
matrix:
- CPP11=1
- CPP11=0
global:
- ACE_ROOT=$TRAVIS_BUILD_DIR/ext/ATCD/ACE
- MPC_ROOT=$TRAVIS_BUILD_DIR/ext/MPC
- XSC_ROOT=$TRAVIS_BUILD_DIR
- LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
- COMPILER=g++-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libssl-dev
- libxerces-c-dev
- g++-8
- libboost-all-dev
before_install:
- mkdir ext
- cd ext && git clone --depth 1 git://github.com/DOCGroup/MPC.git
- git clone --depth 1 git://github.com/DOCGroup/ACE_TAO.git ATCD
- cd ..
branches:
only:
- master
before_script:
- export
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "#include \"ace/config-linux.h\"" >> $ACE_ROOT/ace/config.h; fi
- echo -e "boost=1\nc++11=1\nxsc=1\nxerces3=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU
- if [ "$CPP11" == "1" ]; then echo -e "c++11=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
- echo -e "boost=1\nxerces3=1\nxsc=1\n" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$CXX" == "g++" ]; then
echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
else
echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
fi
fi
- cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features
- cat $ACE_ROOT/ace/config.h
- cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
script:
- perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 XSC.mwc
- make -j 6