Commit 38047a92 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[travis] Changed the user name to test Travis.

[travis] Fix cmake input parameters to avoid LD_VERSION failure.

[travis] Fix build status display.

Put back proper stack-of-tasks user for Travis.

[travis] Fix source error on travis

[travis] Fix release test

[travis] Improved feedback for Travis + remove possible argument failure.
parent 90674df9
......@@ -33,13 +33,34 @@ install_dependency()
# Install dependencies
# Detect Ubuntu release
if [ -f /etc/lsb-release ]; then
(. /etc/lsb-release;
echo "#!/bin/bash" > /tmp/local.bash
echo "export DISTRIB_CODENAME="$DISTRIB_CODENAME >> /tmp/local.bash;
echo "export DISTRIB_RELEASE="$DISTRIB_RELEASE >> /tmp/local.bash;
echo "export DISTRIB_DESCRIPTION=\""$DISTRIB_DESCRIPTION\" >> /tmp/local.bash;)
. /tmp/local.bash
fi
# Compile and run tests
cd "$build_dir"
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_MODULE_LINKER_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
if [ "$DISTRIB_RELEASE" = "14.04" ]; then
echo "Build with 14.04"
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_EXE_LINKER_FLAGS="--coverage" \
-DCMAKE_MODULE_LINKER_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
fi
if [ "$DISTRIB_RELEASE" = "12.04" ]; then
echo "Build with 12.04"
cmake "$root_dir" -DCMAKE_INSTALL_PREFIX="$install_dir" \
-DCMAKE_CXX_FLAGS="--coverage" \
-DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
fi
make soth
make test
make install
......@@ -2,7 +2,7 @@ soth
====
[![Build Status](https://travis-ci.org/stack-of-tasks/soth.png)](https://travis-ci.org/stack-of-tasks/soth)
[![Coverage Status](https://coveralls.io/repos/stack-of-tasks/soth/badge.png?branch=master)](https://coveralls.io/r/stack-of-tasks/soth?branch=master)
[![Coverage Status](https://coveralls.io/repos//stack-of-tasks/soth/badge.png?branch=master)](https://coveralls.io/r/stack-of-tasks/soth?branch=master)
Setup
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment