debian hurd doesn't seem to have sys/sysctl.h
[ACE_TAO.git] / .travis.yml
blob536f8d02bccfd24dfa46b1512c0824e03c2c3654
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     - USES_WCHAR=1 TAO=1
16     - ACETESTS=1 FACE=1 ACE=1 TAO=0
17   global:
18     - ACE_ROOT=$TRAVIS_BUILD_DIR/ACE
19     - TAO_ROOT=$TRAVIS_BUILD_DIR/TAO
20     - MPC_ROOT=$TRAVIS_BUILD_DIR/MPC
21     - LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
22     - COMPILER=g++-8
24 addons:
25   apt:
26     packages:
27       - libssl-dev
28       - libxerces-c-dev
29       - g++-8
31 before_install:
32   - git clone --depth 1 git://github.com/DOCGroup/MPC.git
34 branches:
35   only:
36     - master
38 before_script:
39   - export
40   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "#include \"ace/config-linux.h\"" >> $ACE_ROOT/ace/config.h; fi
41   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "#include \"ace/config-macosx.h\"" >> $ACE_ROOT/ace/config.h; fi
42   - echo -e "workspace {\n" >> $TRAVIS_BUILD_DIR/travis.mwc
43   - if [ "$TAO" == "1" ]; then echo -e "\$(TAO_ROOT)/TAO_ACE.mwc\n\$(TAO_ROOT)/tests/Hello\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
44   - if [ "$ACE" == "1" ]; then echo -e "\$(ACE_ROOT)/ace/ace.mwc\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
45   - if [ "$ACETESTS" == "1" ]; then echo -e "\$(ACE_ROOT)/tests\n" >> $TRAVIS_BUILD_DIR/travis.mwc; fi
46   - echo -e "}\n" >> $TRAVIS_BUILD_DIR/travis.mwc
47   - if [ "$FACE" == "1" ]; then echo -e "#define ACE_FACE_SAFETY_BASE" >> $ACE_ROOT/ace/config.h; fi
48   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
49   - if [ "$CORBAEMICRO" == "1" ]; then echo -e "corba_e_micro=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
50   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
51   - if [ "$CORBAECOMPACT" == "1" ]; then echo -e "corba_e_compact=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
52   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
53   - if [ "$ACEFORTAO" == "1" ]; then echo -e "ace_for_tao=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
54   - if [ "$USES_WCHAR" == "1" ]; then echo -e "uses_wchar=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
55   - if [ "$VERSIONED" == "1" ]; then echo -e "versioned_namespace=1" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
56   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
57   - echo -e "inline=0\nipv6=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU
58   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo -e "xerces3=1\nssl=1\n" >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features; fi
59   - echo -e "TAO/tests/Hello/run_test.pl" >> $TAO_ROOT/bin/travis-ci.lst
60   - if [ "$CXX" == "g++" ]; then echo -e "c++11=1\n" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
61   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_macosx.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU; fi
62   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
63       if [ "$CXX" == "g++" ]; then
64         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
65       else
66         echo -e "include \$(ACE_ROOT)/include/makeinclude/platform_linux_clang.GNU" >> $ACE_ROOT/include/makeinclude/platform_macros.GNU;
67       fi
68     fi
69   - cat $TRAVIS_BUILD_DIR/travis.mwc
70   - cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features
71   - cat $ACE_ROOT/ace/config.h
72   - cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
73   - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
75 script:
76   - perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 travis.mwc
77   - make -j 6
78   - perl $ACE_ROOT/bin/auto_run_tests.pl -l $TAO_ROOT/bin/travis-ci.lst