Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit e0135d6

Browse files
committed
Add clang compilation to travis configuration
Swig 2.0.12 is no installed to avoid the use of Wno-unused-but-set-variable flag which is not present in Clang. Swig sources are built from the official github release. Nevertheless Swig installation success is not checked as the yodl2man command, used for manual generation is not available in travis whitelist. Signed-off-by: Jules Clero <julesx.clero@intel.com>
1 parent e073a74 commit e0135d6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ env:
88

99
compiler:
1010
- gcc
11-
# clang not supported yet
12-
# - clang
11+
- clang
1312

1413
# Install a recent gcc and gcov,
1514
# it will not be necessary once travis worker is based on ubuntu > 12.04.
@@ -20,14 +19,21 @@ addons:
2019
sources:
2120
- ubuntu-toolchain-r-test
2221
packages:
23-
- swig
2422
- valgrind
2523
- g++-4.8
2624

2725
install:
2826
- pip install --user cpp-coveralls; export PATH=$HOME/.local/bin:$PATH
2927
- wget --directory-prefix $PREFIX/include
3028
https://raw.github.com/philsquared/Catch/master/single_include/catch.hpp
29+
# Install recent swig.
30+
# Avoid make install check because documentation generation will fail as yodl2man command is
31+
# missing and the corresponding paquet is not available in travis whitelist.
32+
- ( mkdir build_swig && cd build_swig &&
33+
wget https://github.com/swig/swig/archive/rel-2.0.12.tar.gz &&
34+
tar -xf rel-2.0.12.tar.gz && cd swig-rel-2.0.12/ && ./autogen.sh &&
35+
./configure --prefix=$PREFIX && make && make install ;
36+
echo "Dropping documentation generation error" )
3137

3238
before_script:
3339
- if [ "$CC" = "gcc" ]; then export CC=gcc-4.8 CXX=g++-4.8; fi
@@ -55,6 +61,7 @@ after_success:
5561
--exclude "build_debug/bindings/python"
5662
--exclude "build_debug/CMakeFiles"
5763
--exclude "build"
64+
--exclude "build_swig"
5865
--exclude "skeleton-subsystem"
5966
--exclude "test/test-subsystem"
6067
--exclude "bindings/c/Test.cpp"

0 commit comments

Comments
 (0)