Merge pull request #1088 from DOCGroup/mitza-oci-clang-common
[ACE_TAO.git] / .travis.yml
blobba54aba53d09eba42f573ac179510186c1cdbc98
1 dist: bionic
2 group: travis_latest
3 language: cpp
4 os:
5   - linux
7 compiler:
8   - gcc
10 env:
11   matrix:
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     - os: osx
29       env: COMPILER=clang++ VERSIONED=1 TAO=1 ACETESTS=1
31 addons:
32   apt:
33     packages:
34       - libssl-dev
35       - libxerces-c-dev
36       - g++-8
38 before_install:
39   - git clone --depth 1 git://github.com/DOCGroup/MPC.git
41 branches:
42   only:
43     - master
45 before_script:
46   - export
47   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "#include \"ace/config-linux.h\"" >> $ACE_ROOT/ace/config.h; fi
48   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "#include \"ace/config-macosx.h\"" >> $ACE_ROOT/ace/config.h; fi
49   - echo -e "workspace {\n" >> $TRAVIS_BUILD_DIR/travis.mwc
50   - if [ "$TAO" == "1" ]; then echo -e "\$(TAO_ROOT)/TAO_ACE.mwc\n\$(TAO_ROOT)/tests/Hello\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
51   - if [ "$ACE" == "1" ]; then echo -e "\$(ACE_ROOT)/ace/ace.mwc\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
52   - if [ "$ACETESTS" == "1" ]; then echo -e "\$(ACE_ROOT)/tests\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
53   - echo -e "}\n" >> $TRAVIS_BUILD_DIR/travis.mwc
54   - if [ "$FACE" == "1" ]; then echo -e "#define ACE_FACE_SAFETY_BASE" >> $ACE_ROOT/ace/config.h; fi
55   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
56   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
57   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
58   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
59   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
60   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
61   - if [ "$USES_WCHAR" == "1" ]; then echo -e "uses_wchar=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
62   - if [ "$VERSIONED" == "1" ]; then echo -e "versioned_namespace=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
63   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
64   - echo -e "inline=0\nipv6=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU
65   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
66   - echo -e "TAO/tests/Hello/run_test.pl" >> $TAO_ROOT/bin/travis-ci.lst
67   - if [ "$CXX" == "g++" ]; then echo -e "c++11=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
68   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_macosx.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
69   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
70       if [ "$CXX" == "g++" ]; then
71         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
72       else
73         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
74       fi
75     fi
76   - cat $TRAVIS_BUILD_DIR/travis.mwc
77   - cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features
78   - cat $ACE_ROOT/ace/config.h
79   - cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
80   - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
82 script:
83   - perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 travis.mwc
84   - make -j 6
85   - perl $ACE_ROOT/bin/auto_run_tests.pl -l $TAO_ROOT/bin/travis-ci.lst