Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL ITS
docker-ci
Commits
b8126cf0
Commit
b8126cf0
authored
6 years ago
by
Jose Raul Barreras
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
9c7c8e24
Branches
Branches containing commit
No related tags found
2 merge requests
!15
Merge Develop into Master
,
!14
Remove the non UNL registry
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/Android.md
+32
-0
32 additions, 0 deletions
examples/Android.md
with
32 additions
and
0 deletions
examples/Android.md
0 → 100644
+
32
−
0
View file @
b8126cf0
# Android example of .gitlab-ci.yml
## Standard Android app with SonarQube analysis
-
One 'Analysis' stage with one job.
-
The job SonarQube is executed only in the branch
`develop`
.
```
yml
stages
:
-
Analysis
variables
:
GRADLE_USER_HOME
:
${CI_PROJECT_DIR}/gradle_home
before_script
:
-
./gradlew dependencies
-
for d in /opt/android-sdk-linux/build-tools/*; do PATH="$PATH:$d"; done
SonarQube
:
stage
:
Analysis
image
:
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis:android
tags
:
-
docker
only
:
-
develop
cache
:
paths
:
-
gradle_home
script
:
-
./gradlew sonarqube -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.login=$SONAR_TOKEN
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment