Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e0b08aa8
Commit
e0b08aa8
authored
Sep 07, 2015
by
Daniel Agar
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1841 from dagar/travis-fixes
fix linux unittests failure
parents
fa4e7a2c
a0a7b788
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
.travis.yml
.travis.yml
+7
-7
QGCInstaller.pri
QGCInstaller.pri
+3
-0
QGCApplication.cc
src/QGCApplication.cc
+3
-1
No files found.
.travis.yml
View file @
e0b08aa8
...
...
@@ -23,13 +23,13 @@ cache:
before_install
:
-
cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow && git fetch --tags
-
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then mkdir -p $HOME/Library/Preferences/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/; fi
-
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then mkdir -p ~/.config/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/.config/QtProject/; fi
-
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then mkdir -p ~/Library/Preferences/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/Library/Preferences/QtProject/; fi
install
:
-
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
mkdir -p $HOME/.config/QtProject $HOME/.config/QGroundControl.org $HOME/QGroundControl
&& sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:beineri/opt-qt541
-
if [[ "${TRAVIS_OS_NAME}" = "linux" || "${TRAVIS_OS_NAME}" = "android" ]]; then
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:beineri/opt-qt542
&& sudo apt-get -qq update
&& sudo apt-get -qq install g++-4.8 libc6-i386 qt54tools qt54base qt54declarative qt54serialport qt54svg qt54webkit qt54quickcontrols qt54xmlpatterns qt54x11extras qt54websockets qt54sensors qt54script qt54quick1 qt54multimedia qt54location qt54imageformats qt54graphicaleffects qt54connectivity espeak libespeak-dev libopenscenegraph-dev libsdl1.2-dev libudev-dev
&& export PATH=/opt/qt54/bin:$PATH
...
...
@@ -38,7 +38,7 @@ install:
&& export DISPLAY=:99.0
&& sh -e /etc/init.d/xvfb start
;
el
se
el
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew tap PX4/homebrew-px4
&& brew update
&& brew install qt54
...
...
@@ -54,7 +54,7 @@ script:
-
make -j4
-
echo -en 'travis_fold:end:script.1\\r'
-
echo 'Running unittests' && echo -en 'travis_fold:start:script.2\\r'
# - if [[ "${TRAVIS_OS_NAME}" = "linux" && "${CONFIG}" = "debug" ]]; then ls -ls ~; ls -ls ~/.config;
./debug/qgroundcontrol --unittest; fi
-
if [[ "${TRAVIS_OS_NAME}" = "linux" && "${CONFIG}" = "debug" ]]; then
./debug/qgroundcontrol --unittest; fi
-
if [[ "${TRAVIS_OS_NAME}" = "osx" && "${CONFIG}" = "debug" ]]; then ./debug/qgroundcontrol.app/Contents/MacOS/qgroundcontrol --unittest; fi
-
echo -en 'travis_fold:end:script.2\\r'
...
...
QGCInstaller.pri
View file @
e0b08aa8
...
...
@@ -50,4 +50,7 @@ installer {
#QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY qgroundcontrol.pdb $${DESTDIR_WIN}
#QMAKE_POST_LINK += $$escape_expand(\\n) del qgroundcontrol.pdb
}
LinuxBuild {
QMAKE_POST_LINK += && tar -cjf qgroundcontrol.tar.bz2 release --transform 's/release/qgroundcontrol/'
}
}
src/QGCApplication.cc
View file @
e0b08aa8
...
...
@@ -391,7 +391,9 @@ void QGCApplication::_initCommon(void)
QString
documentsLocation
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DocumentsLocation
);
QDir
documentsDir
(
documentsLocation
);
Q_ASSERT
(
documentsDir
.
exists
());
if
(
!
documentsDir
.
exists
())
{
qWarning
()
<<
"Documents directory doesn't exist"
<<
documentsDir
.
absolutePath
();
}
bool
pathCreated
=
documentsDir
.
mkpath
(
_defaultSavedFileDirectoryName
);
Q_UNUSED
(
pathCreated
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment