Skip to content

Commit

Permalink
travis: move all build and install steps to script to avoid log folding
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Meyer <[email protected]>
  • Loading branch information
meyerj committed Jan 10, 2017
1 parent ba29193 commit 404b77b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ matrix:
- env: COMPILER=clang-3.8 CXXFLAGS="-std=c++03 -Wall -Wextra -Wno-unused-parameter"
- env: COMPILER=clang-3.8 CXXFLAGS="-std=c++11 -Wall -Wextra -Wno-unused-parameter"

install:
script:
# Set C/C++ compiler
- |
if [[ "${COMPILER}" != "" ]]; then
export CC=${COMPILER}
Expand All @@ -44,11 +45,14 @@ install:
elif [[ "${COMPILER}" == "clang"* ]]; then
export CXX=${COMPILER/clang/clang++}
fi
${CC} --version
${CXX} --version
fi
# Build and install RTT
- mkdir -p build && cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/install $EXTRA_CMAKE_ARGS
- make -j2 install

script:
# Run tests
- make -j1 check

0 comments on commit 404b77b

Please sign in to comment.