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
90170eb1
Commit
90170eb1
authored
Mar 14, 2016
by
Daniel Agar
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3028 from mavlink/travis-misc
travis-ci fix slow doxygen upload and broken android versioning
parents
36561731
c30599ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
.travis.yml
.travis.yml
+2
-1
AndroidManifest.xml
android/AndroidManifest.xml
+1
-1
update_android_version.sh
tools/update_android_version.sh
+5
-2
No files found.
.travis.yml
View file @
90170eb1
...
...
@@ -114,7 +114,7 @@ before_script:
-
if [ "${CONFIG}" != "doxygen" ]; then mkdir ${SHADOW_BUILD_DIR} && cd ${SHADOW_BUILD_DIR} && qmake -r ${TRAVIS_BUILD_DIR}/qgroundcontrol.pro CONFIG+=${CONFIG} CONFIG+=WarningsAsErrorsOn -spec ${SPEC}; fi
script
:
-
cd ${TRAVIS_BUILD_DIR} && ./tools/update_android_version.sh
-
if [ "${TRAVIS_OS_NAME}" = "android" ]; then cd ${TRAVIS_BUILD_DIR} && ./tools/update_android_version.sh; fi
-
echo 'Building QGroundControl' && echo -en 'travis_fold:start:script.1\\r'
-
if [ "${CONFIG}" != "doxygen" ]; then cd ${SHADOW_BUILD_DIR} && make -j4; fi
-
if [ "${CONFIG}" = "doxygen" ]; then cd ${TRAVIS_BUILD_DIR}/src && doxygen documentation.dox; fi
...
...
@@ -170,6 +170,7 @@ deploy:
skip_cleanup
:
true
branch
:
master
on
:
tags
:
true
condition
:
$CONFIG = doxygen
notifications
:
...
...
android/AndroidManifest.xml
View file @
90170eb1
<?xml version="1.0"?>
<manifest
package=
"org.mavlink.qgroundcontrol"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:versionName=
"2.
8.0"
android:versionCode=
"2152
"
android:installLocation=
"auto"
>
<manifest
package=
"org.mavlink.qgroundcontrol"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:versionName=
"2.
9.4-184-gda30c6b"
android:versionCode=
"2506
"
android:installLocation=
"auto"
>
<application
android:hardwareAccelerated=
"true"
android:name=
"org.qtproject.qt5.android.bindings.QtApplication"
android:label=
"-- %%INSERT_APP_NAME%% --"
android:icon=
"@drawable/icon"
>
<activity
android:configChanges=
"orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
android:name=
"org.qgroundcontrol.qgchelper.UsbDeviceJNI"
android:label=
"-- %%INSERT_APP_NAME%% --"
android:screenOrientation=
"sensorLandscape"
android:launchMode=
"singleTask"
android:keepScreenOn=
"true"
>
<intent-filter>
...
...
tools/update_android_version.sh
View file @
90170eb1
#!/usr/bin/env bash
# this requires `master` in the git tree
# travis-ci branch builds are unable to set the version properly
MANIFEST_FILE
=
android/AndroidManifest.xml
VERSIONCODE
=
`
git rev-list master
--first-parent
--count
`
...
...
@@ -13,7 +16,7 @@ if [ -n "$VERSIONCODE" ]; then
echo
"Android version:
${
VERSIONCODE
}
"
else
echo
"Error versionCode empty"
exit
1
exit
0
# don't cause the build to fail
fi
if
[
-n
"
$VERSIONNAME
"
]
;
then
...
...
@@ -21,5 +24,5 @@ if [ -n "$VERSIONNAME" ]; then
echo
"Android name:
${
VERSIONNAME
}
"
else
echo
"Error versionName empty"
exit
1
exit
0
# don't cause the build to fail
fi
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