[CI] update travis.yml
This commit is contained in:
parent
22b869e2d0
commit
a6865bfa43
@ -70,10 +70,11 @@ after_script:
|
||||
- if [ "$GCOV" != "" ]; then
|
||||
./ci/warning_send.py --find-path ./out/Linux_x86_64/$CONF/build/$BUILDER/ejson/;
|
||||
fi
|
||||
- ./out/Linux_x86_64/$CONF/staging/$BUILDER/ejson-test/ejson-test.app/bin/ejson-test --etk-log-level=3 | tee out_test.txt
|
||||
- if [ "$GCOV" != "" ]; then
|
||||
- if [ "$GCOV" == "" ]; then
|
||||
./out/Linux_x86_64/$CONF/staging/$BUILDER/ejson-test/ejson-test.app/bin/ejson-test --elog-level=3 | tee out_test.txt
|
||||
else
|
||||
./ci/test_send.py --file=out_test.txt;
|
||||
lutin -C -P -t $TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF -p ejson?gcov;
|
||||
lutin -C -P -t $TARGET -c $BUILDER $COMPILATOR_OPTION $BUS -m $CONF -p ejson-*?build?run ejson?gcov;
|
||||
./ci/coverage_send.py --json=out/Linux_x86_64/$CONF/build/$BUILDER/ejson/ejson_coverage.json;
|
||||
fi
|
||||
|
||||
|
@ -112,7 +112,7 @@ template class ejson::iterator<ejson::Array>;
|
||||
// Not implemented ==> force link error ...
|
||||
/*
|
||||
template<>
|
||||
std::string ejson::iterator<ejson::Array>::getKey() {
|
||||
std::string ejson::iterator<ejson::Array>::getKey() const noexcept {
|
||||
return m_data.getKey(m_id);
|
||||
}
|
||||
*/
|
@ -67,7 +67,7 @@ bool ejson::Document::store(const std::string& _file) {
|
||||
return static_cast<ejson::internal::Document*>(m_data.get())->store(_file);
|
||||
}
|
||||
|
||||
void setDisplayError(bool _value){
|
||||
void ejson::Document::setDisplayError(bool _value){
|
||||
if (m_data == nullptr) {
|
||||
EJSON_ERROR("Can not setDisplayError (nullptr) ...");
|
||||
return;
|
||||
@ -75,12 +75,12 @@ void setDisplayError(bool _value){
|
||||
static_cast<ejson::internal::Document*>(m_data.get())->setDisplayError(_value);
|
||||
}
|
||||
|
||||
bool getDisplayError() {
|
||||
bool ejson::Document::getDisplayError() {
|
||||
if (m_data == nullptr) {
|
||||
EJSON_ERROR("Can not getDisplayError (nullptr) ...");
|
||||
return false;
|
||||
}
|
||||
return static_cast<ejson::internal::Document*>(m_data.get())->getDisplayError(_value);
|
||||
return static_cast<ejson::internal::Document*>(m_data.get())->getDisplayError();
|
||||
}
|
||||
|
||||
void ejson::Document::displayError() {
|
||||
|
@ -159,9 +159,10 @@ const ejson::Object::iterator ejson::Object::end() const {
|
||||
#include <ejson/details/iterator.hxx>
|
||||
|
||||
template class ejson::iterator<ejson::Object>;
|
||||
|
||||
namespace ejson {
|
||||
template<>
|
||||
std::string ejson::iterator<ejson::Object>::getKey() {
|
||||
std::string iterator<ejson::Object>::getKey() const noexcept {
|
||||
return m_data.getKey(m_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,9 +69,7 @@ namespace ejson {
|
||||
* @brief Set the display of the error when detected.
|
||||
* @param[in] _value true: display error, false not display error (get it at end)
|
||||
*/
|
||||
void setDisplayError(bool _value) {
|
||||
m_writeErrorWhenDetexted = _value;
|
||||
};
|
||||
void setDisplayError(bool _value);
|
||||
/**
|
||||
* @brief Get the display of the error status.
|
||||
* @return true Display error
|
||||
|
@ -120,6 +120,6 @@ namespace ejson {
|
||||
* @brief Get Key of an element
|
||||
* @return Key of the Element
|
||||
*/
|
||||
std::string getKey();
|
||||
std::string getKey() const noexcept;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user