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