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