fix travis

This commit is contained in:
Thomas Fussell 2015-11-20 23:55:03 -05:00
parent 26cbe7d2e2
commit 5dff524bc4

View File

@ -36,13 +36,14 @@ script:
- env - env
- mkdir build - mkdir build
- cd build - cd build
- cmake -G "Unix Makefiles" -D SHARED=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_CXX_FLAGS="-lstdc++" ../cmake - cmake -G "Unix Makefiles" -D SHARED=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER ../cmake
- make - make
- ../bin/xlnt.test - ../bin/xlnt.test
after_success: after_success:
- if [ "$COMPILER" = "g++-4.9" ]; then cd .. && mkdir build && cd build ; fi - echo "$COMPILER"
- if [ "$COMPILER" = "g++-4.9" ]; then cmake -G "Unix Makefiles" -D SHARED=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage -lstdc++" ../cmake - if [ "$COMPILER" = "g++-4.9" ]; then cd .. ; mkdir build ; cd build ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then cmake -G "Unix Makefiles" -D SHARED=1 -D BUILD_TESTS=1 -D CMAKE_CXX_COMPILER=$COMPILER -D CMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage" ../cmake ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then make ; fi - if [ "$COMPILER" = "g++-4.9" ]; then make ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then ../bin/xlnt.test ; fi - if [ "$COMPILER" = "g++-4.9" ]; then ../bin/xlnt.test ; fi
- if [ "$COMPILER" = "g++-4.9" ]; then coveralls --include ../source/worksheet/test_worksheet.hpp --gcov-options '\-lp' --gcov 'gcov-4.9' ; fi - if [ "$COMPILER" = "g++-4.9" ]; then coveralls --include ../source/worksheet/test_worksheet.hpp --gcov-options '\-lp' --gcov 'gcov-4.9' ; fi