sendmsg with msg_control: added Windows platform support
[ACE_TAO.git] / .travis.yml
blobe9cc4d13b4a89cedb0bc2c50f4bd2b5bc548590e
1 group: travis_latest
2 language: cpp
3 os:
4   - linux
6 compiler:
7   - gcc
9 env:
10   matrix:
11     - FUZZ=1
12     - CORBAEMICRO=1 ACEFORTAO=0 TAO=1
13     - CORBAECOMPACT=1 ACEFORTAO=0 TAO=1
14     - ACEFORTAO=1 TAO=1
15     - ACETESTS=1 ACEFORTAO=0 ACE=1 TAO=0
16     - USES_WCHAR=1 TAO=1
17     - VERSIONED=1 TAO=1
18     - ACETESTS=1 FACE=1 ACE=1 TAO=0
19   global:
20     - ACE_ROOT=$TRAVIS_BUILD_DIR/ACE
21     - TAO_ROOT=$TRAVIS_BUILD_DIR/TAO
22     - MPC_ROOT=$TRAVIS_BUILD_DIR/MPC
23     - LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
24     - COMPILER=g++-8
26 matrix:
27   include:
28     - compiler: gcc
29       addons:
30         apt:
31           sources:
32             - ubuntu-toolchain-r-test
33           packages:
34             - libxerces-c-dev
35             - libssl-dev
36             - g++-7
37       env: COMPILER=g++-7 VERSIONED=1 TAO=1 ACETESTS=1
38     - compiler: gcc
39       addons:
40         apt:
41           sources:
42             - ubuntu-toolchain-r-test
43           packages:
44             - libxerces-c-dev
45             - libssl-dev
46             - g++-6
47       env: COMPILER=g++-6 VERSIONED=1 TAO=1 ACETESTS=1
48     - os: osx
49       env: COMPILER=clang++ VERSIONED=1 TAO=1 ACETESTS=1
51 addons:
52   apt:
53     sources:
54       - ubuntu-toolchain-r-test
55     packages:
56       - libssl-dev
57       - libxerces-c-dev
58       - g++-8
60 before_install:
61   - git clone --depth 1 git://github.com/DOCGroup/MPC.git
63 branches:
64   only:
65     - master
67 before_script:
68   - export
69   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "#include \"ace/config-linux.h\"" >> $ACE_ROOT/ace/config.h; fi
70   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "#include \"ace/config-macosx.h\"" >> $ACE_ROOT/ace/config.h; fi
71   - echo -e "workspace {\n" >> $TRAVIS_BUILD_DIR/travis.mwc
72   - if [ "$TAO" == "1" ]; then echo -e "\$(TAO_ROOT)/TAO_ACE.mwc\n\$(TAO_ROOT)/tests/Hello\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
73   - if [ "$ACE" == "1" ]; then echo -e "\$(ACE_ROOT)/ace/ace.mwc\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
74   - if [ "$ACETESTS" == "1" ]; then echo -e "\$(ACE_ROOT)/tests\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
75   - echo -e "}\n" >> $TRAVIS_BUILD_DIR/travis.mwc
76   - if [ "$FACE" == "1" ]; then echo -e "#define ACE_FACE_SAFETY_BASE" >> $ACE_ROOT/ace/config.h; fi
77   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
78   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
79   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
80   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
81   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
82   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
83   - if [ "$CCMLW" == "1" ]; then echo -e "ccm_lw=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
84   - if [ "$CCMNOEVENT" == "1" ]; then echo -e "ccm_noevent=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
85   - if [ "$USES_WCHAR" == "1" ]; then echo -e "uses_wchar=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
86   - if [ "$VERSIONED" == "1" ]; then echo -e "versioned_namespace=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
87   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
88   - echo -e "inline=0\nipv6=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU
89   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
90   - echo -e "TAO/tests/Hello/run_test.pl" >> $TAO_ROOT/bin/travis-ci.lst
91   - if [ "$CXX" == "g++" ]; then echo -e "c++11=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
92   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_macosx.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
93   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
94       if [ "$CXX" == "g++" ]; then
95         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
96       else
97         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
98       fi
99     fi
100   - cat $TRAVIS_BUILD_DIR/travis.mwc
101   - cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features
102   - cat $ACE_ROOT/ace/config.h
103   - cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
104   - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
106 script:
107   - if [ "$FUZZ" == "1" ]; then exec perl $ACE_ROOT/bin/fuzz.pl; fi
108   - perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 travis.mwc
109   - make -j 6
110   - perl $ACE_ROOT/bin/auto_run_tests.pl -l $TAO_ROOT/bin/travis-ci.lst