Commit 5c94cda4 authored by Don Gagne's avatar Don Gagne Committed by Lorenz Meier

Only run unit tests on pull requests

parent ca28b596
...@@ -174,12 +174,14 @@ script: ...@@ -174,12 +174,14 @@ script:
#- ccache -s #- ccache -s
# unit tests linux/osx # unit tests linux/osx
- if [[ "${SPEC}" = "linux-g++-64" && "${CONFIG}" = "debug" ]]; then - if [ "${TRAVIS_BRANCH}" != "master" ]; then
mkdir -p ~/.config/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/.config/QtProject/ && if [[ "${SPEC}" = "linux-g++-64" && "${CONFIG}" = "debug" ]]; then
./debug/QGroundControl --unittest; mkdir -p ~/.config/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/.config/QtProject/ &&
elif [[ "${SPEC}" = "macx-clang" && "${CONFIG}" = "debug" ]]; then ./debug/QGroundControl --unittest;
mkdir -p ~/Library/Preferences/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/ && elif [[ "${SPEC}" = "macx-clang" && "${CONFIG}" = "debug" ]]; then
./debug/qgroundcontrol.app/Contents/MacOS/QGroundControl --unittest; mkdir -p ~/Library/Preferences/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/ &&
./debug/qgroundcontrol.app/Contents/MacOS/QGroundControl --unittest;
fi
fi fi
after_success: after_success:
......
Markdown is supported
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