tao_idl: create default IDL version variable
[ACE_TAO.git] / .travis.yml
blob5255b6115437f0696f825f939b3d31279a26387f
1 sudo: false
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     - compiler: clang
30       addons:
31         apt:
32           sources:
33             - ubuntu-toolchain-r-test
34             - llvm-toolchain-trusty-6.0
35           packages:
36             - libxerces-c-dev
37             - libssl-dev
38             - clang-6.0
39       env: COMPILER='clang++-6.0' VERSIONED=1 TAO=1 ACETESTS=1
40     - compiler: clang
41       addons:
42         apt:
43           sources:
44             - ubuntu-toolchain-r-test
45             - llvm-toolchain-trusty-5.0
46           packages:
47             - libxerces-c-dev
48             - libssl-dev
49             - clang-5.0
50       env: COMPILER='clang++-5.0' VERSIONED=1 TAO=1 ACETESTS=1
51     - compiler: gcc
52       addons:
53         apt:
54           sources:
55             - ubuntu-toolchain-r-test
56           packages:
57             - libxerces-c-dev
58             - libssl-dev
59             - g++-7
60       env: COMPILER='g++-7' VERSIONED=1 TAO=1 ACETESTS=1
61     - compiler: gcc
62       addons:
63         apt:
64           sources:
65             - ubuntu-toolchain-r-test
66           packages:
67             - libxerces-c-dev
68             - libssl-dev
69             - g++-6
70       env: COMPILER='g++-6' VERSIONED=1 TAO=1 ACETESTS=1
71     - os: osx
72       env: COMPILER=clang++ VERSIONED=1 TAO=1 ACETESTS=1
74 addons:
75   apt:
76     sources:
77       - ubuntu-toolchain-r-test
78     packages:
79       - libssl-dev
80       - libxerces-c-dev
81       - g++-8
83 before_install:
84   - git clone --depth 1 git://github.com/DOCGroup/MPC.git
86 branches:
87   only:
88     - master
90 before_script:
91   - export
92   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "#include \"ace/config-linux.h\"" >> $ACE_ROOT/ace/config.h; fi
93   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "#include \"ace/config-macosx.h\"" >> $ACE_ROOT/ace/config.h; fi
94   - echo -e "workspace {\n" >> $TRAVIS_BUILD_DIR/travis.mwc
95   - if [ "$TAO" == "1" ]; then echo -e "\$(TAO_ROOT)/TAO_ACE.mwc\n\$(TAO_ROOT)/tests/Hello\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
96   - if [ "$ACE" == "1" ]; then echo -e "\$(ACE_ROOT)/ace/ace.mwc\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
97   - if [ "$ACETESTS" == "1" ]; then echo -e "\$(ACE_ROOT)/tests\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
98   - echo -e "}\n" >> $TRAVIS_BUILD_DIR/travis.mwc
99   - if [ "$FACE" == "1" ]; then echo -e "#define ACE_FACE_SAFETY_BASE" >> $ACE_ROOT/ace/config.h; fi
100   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
101   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
102   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
103   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
104   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
105   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
106   - if [ "$CCMLW" == "1" ]; then echo -e "ccm_lw=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
107   - if [ "$CCMNOEVENT" == "1" ]; then echo -e "ccm_noevent=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
108   - if [ "$USES_WCHAR" == "1" ]; then echo -e "uses_wchar=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
109   - if [ "$VERSIONED" == "1" ]; then echo -e "versioned_namespace=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
110   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
111   - echo -e "inline=0\nipv6=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU
112   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
113   - echo -e "TAO/tests/Hello/run_test.pl" >> $TAO_ROOT/bin/travis-ci.lst
114   - if [ "$CXX" == "g++" ]; then echo -e "c++11=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
115   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_macosx.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
116   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
117       if [ "$CXX" == "g++" ]; then
118         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
119       else
120         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
121       fi
122     fi
123   - cat $TRAVIS_BUILD_DIR/travis.mwc
124   - cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features
125   - cat $ACE_ROOT/ace/config.h
126   - cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
127   - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
129 script:
130   - if [ "$FUZZ" == "1" ]; then exec perl $ACE_ROOT/bin/fuzz.pl; fi
131   - perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 travis.mwc
132   - make -j 6
133   - perl $ACE_ROOT/bin/auto_run_tests.pl -l $TAO_ROOT/bin/travis-ci.lst