[TRAVIS] try to simplify travis build interface

This commit is contained in:
Edouard DUPIN 2015-01-14 21:33:25 +01:00
parent 20cfcd5aea
commit c3b20ceb8f
3 changed files with 7 additions and 7 deletions

View File

@ -21,24 +21,22 @@ before_script:
- cd ewol; git submodule update; cd ..
- cd ewol; git submodule foreach git checkout master; cd ..
- cd ewol; git submodule foreach git pull; cd ..
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
#install Gcc to have lisstdc++ 4.8 & gcc 4.8
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- sudo apt-get install -qq libstdc++-4.9-dev
- sudo rm /usr/bin/gcc /usr/bin/g++
- sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++
# build sequence with Lutin :
script:
- if [ "$CXX" == "clang++" ]; then ./ewol/build/lutin.py -C -P -cclang -mdebug -p exml_test; fi
- if [ "$CXX" == "g++" ]; then ./ewol/build/lutin.py -C -P -cgcc -mdebug -p exml_test; fi
after_script:
- if [ "$CXX" == "clang++" ]; then ./out/Linux_x86_64/debug/staging/clang/exml_test/usr/bin/exml_test; fi
- if [ "$CXX" == "g++" ]; then ./out/Linux_x86_64/debug/staging/gcc/exml_test/usr/bin/exml_test; fi
- ./ewol/build/lutin.py -C -P -c$BUILDER -mdebug -p exml_test
- ./out/Linux_x86_64/debug/staging/$BUILDER/exml_test/usr/bin/exml_test -l6
#send e-mail on compilation result:
notifications:

View File

@ -169,6 +169,7 @@ bool exml::Element::iGenerate(std::string& _data, int32_t _indent) const {
&& std::dynamic_pointer_cast<exml::Text>(m_listSub[0])->countLines() == 1) {
_data += ">";
m_listSub[0]->iGenerate(_data,0);
EXML_VERBOSE(" generate : '" << _data << "'");
} else {
_data += ">\n";

View File

@ -34,7 +34,7 @@ static std::string replaceSpecialChar(const std::string& _inval) {
out = std::regex_replace(out, regexAPOS, std::string("'"));
out = std::regex_replace(out, regexQUOT, std::string("\""));
out = std::regex_replace(out, regexAMP, std::string("&"));
//EXML_ERROR("plop "<< _inval << " => " << out);
//EXML_ERROR("INNN '"<< _inval << "' => '" << out << "'");
return out;
}
static std::string replaceSpecialCharOut(const std::string& _inval) {
@ -50,6 +50,7 @@ static std::string replaceSpecialCharOut(const std::string& _inval) {
out = std::regex_replace(out, regexAPOS, std::string("&apos;"));
out = std::regex_replace(out, regexGT, std::string("&gt;"));
out = std::regex_replace(out, regexLT, std::string("&lt;"));
//EXML_ERROR("OUTTT '"<< _inval << "' => '" << out << "'");
return out;
}