Skip to content

Commit

Permalink
add clang build back to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 24, 2016
1 parent 498ea33 commit 3ea455a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ matrix:
packages:
- g++-5
env: COMPILER=g++-5
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=clang++

before_install:
- sudo apt-get update -qq
Expand Down
4 changes: 2 additions & 2 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ if [[ "$CXX" == "" ]]; then
CXX="g++";
fi

echo ${CXX}
${CXX} --version

if [[ "$BOOST_INCLUDE_DIR" == "" ]]; then
BOOST_INCLUDE_DIR="/usr/include";
fi

echo ${BOOST_INCLUDE_DIR}
echo "Boost Dir: " ${BOOST_INCLUDE_DIR}

${CXX} $@ -std=c++11 -I./include -Wall -Werror -Wextra -pedantic test_visit_struct.cpp
./a.out
Expand Down
3 changes: 3 additions & 0 deletions test_visit_struct_boost_fusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ void debug_print(const T & t) {
* tests
*/

#include <boost/version.hpp>

int main() {
std::cerr << __FILE__ << std::endl;
std::cerr << "Boost version: "<< BOOST_LIB_VERSION << std::endl;

{
test_struct_one s{ 5, 7.5f, "asdf" };
Expand Down

0 comments on commit 3ea455a

Please sign in to comment.