|
@@ -193,12 +193,22 @@ else
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
echo -en 'travis_fold:end:script.build.multithread\\r'
|
|
echo -en 'travis_fold:end:script.build.multithread\\r'
|
|
|
|
|
|
- echo -e "\r\n== Debug build and unit tests (64 bit) ==" && echo -en 'travis_fold:start:script.build.unit_test_valgrind\\r'
|
|
|
|
|
|
+ echo -e "\r\n== Debug build and unit tests (64 bit, python 2) ==" && echo -en 'travis_fold:start:script.build.unit_test_valgrind_python2\\r'
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=ON -DUA_ENABLE_VALGRIND_UNIT_TESTS=ON ..
|
|
|
|
|
|
+ # Force to use python2 to test compilation with python2
|
|
|
|
+ cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=ON -DUA_ENABLE_VALGRIND_UNIT_TESTS=ON ..
|
|
make -j && make test ARGS="-V"
|
|
make -j && make test ARGS="-V"
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
- echo -en 'travis_fold:end:script.build.unit_test_valgrind\\r'
|
|
|
|
|
|
+ cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.unit_test_valgrind_python2\\r'
|
|
|
|
+
|
|
|
|
+ echo -e "\r\n== Debug build and unit tests (64 bit, python 3) ==" && echo -en 'travis_fold:start:script.build.unit_test_valgrind_python3\\r'
|
|
|
|
+ mkdir -p build && cd build
|
|
|
|
+ # Force to use python3 to test compilation with python3
|
|
|
|
+ cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=ON -DUA_ENABLE_VALGRIND_UNIT_TESTS=ON ..
|
|
|
|
+ make -j && make test ARGS="-V"
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
+ echo -en 'travis_fold:end:script.build.unit_test_valgrind_python3\\r'
|
|
|
|
|
|
# only run coveralls on main repo, otherwise it fails uploading the files
|
|
# only run coveralls on main repo, otherwise it fails uploading the files
|
|
echo -e "\r\n== -> Current repo: ${TRAVIS_REPO_SLUG} =="
|
|
echo -e "\r\n== -> Current repo: ${TRAVIS_REPO_SLUG} =="
|