[{"data":1,"prerenderedAt":1901},["ShallowReactive",2],{"/blog/setting-up-gitlab-ci-for-android-projects":3,"navigation-en-us":1153,"banner-en-us":1588,"footer-en-us":1596,"blog-post-authors-en-us-Jason Yavorska":1843,"blog-related-posts-en-us-setting-up-gitlab-ci-for-android-projects":1856,"blog-share-wrapper-en-us":1881,"next-steps-en-us":1891},{"id":4,"title":5,"authors":6,"body":8,"category":1133,"date":1134,"description":1135,"extension":1136,"externalUrl":1137,"faq":1137,"featured":1138,"heroImage":1139,"hidePromo":1138,"meta":1140,"navigation":139,"path":1141,"seo":1142,"slug":1146,"stem":1147,"tags":1148,"template":1151,"updatedDate":1137,"__hash__":1152},"blogPosts/en-us/blog/setting-up-gitlab-ci-for-android-projects.md","Setting up GitLab CI for Android projects",[7],"Jason Yavorska",{"type":9,"value":10,"toc":1122},"minimark",[11,21,24,41,46,61,66,74,92,96,102,108,476,479,485,490,503,530,543,547,582,588,622,626,649,652,666,670,709,719,723,772,794,809,813,836,864,868,947,957,961,992,1001,1008,1041,1045,1056,1063,1066,1071,1077,1080,1084,1087,1104,1112,1115,1119],[12,13,14,15,20],"p",{},"Note: This is a new version of a previously published blog post, updated for the current Android API level (28). Thanks Grayson Parrelli for authoring ",[16,17,19],"a",{"href":18},"/blog/setting-up-gitlab-ci-for-android-projects/","the original post","!",[12,22,23],{},"Have you ever accidentally checked on a typo that broke your Android build or unknowingly broke an important use case with a new change? Continuous integration is a way for developers to avoid these headaches, allowing you to confirm that changes to your app compile, and your tests pass before they're merged in.",[12,25,26,30,31,35,36,40],{},[16,27,29],{"href":28},"/solutions/continuous-integration/","GitLab CI/CD"," is a wonderful ",[16,32,34],{"href":33},"/blog/continuous-integration-delivery-and-deployment-with-gitlab/","continuous integration"," built-in solution, and in this post we'll walk through how to set up a basic config file (",[37,38,39],"code",{},".gitlab-ci.yml",") to ensure your Android app compiles and passes unit and functional tests. We assume that you know the process of creating an Android app, can write and run tests locally, and are familiar with the basics of the GitLab UI.",[42,43,45],"h2",{"id":44},"our-sample-project","Our sample project",[12,47,48,49,54,55,60],{},"We'll be working with a real-world open source Android project called ",[16,50,53],{"href":51,"rel":52},"https://github.com/hidroh/materialistic",[],"Materialistic"," to demonstrate how easy it is to get up and running with GitLab CI for Android. Materialistic currently uses Travis CI with GitHub, but switching over is a breeze. If you haven't seen Materialistic before, it's a fantastic open source Android reader for ",[16,56,59],{"href":57,"rel":58},"https://news.ycombinator.com",[],"Hacker News",".",[62,63,65],"h3",{"id":64},"testing","Testing",[12,67,68,73],{},[16,69,72],{"href":70,"rel":71},"https://developer.android.com/training/testing/unit-testing/index.html",[],"Unit tests"," are the fundamental tests in your app testing strategy, from which you can verify that the logic of individual units is correct. They are a fantastic way to catch regressions when making changes to your app. They run directly on the Java Virtual Machine (JVM), so you don't need an actual Android device to run them.",[12,75,76,77,82,83,88,89,91],{},"If you already have working unit tests, you shouldn't have to make any adjustments to have them work with GitLab CI. Materialistic uses ",[16,78,81],{"href":79,"rel":80},"http://robolectric.org/",[],"Robolectric"," for tests, ",[16,84,87],{"href":85,"rel":86},"https://www.eclemma.org/jacoco/",[],"Jacoco"," for coverage, and also has a linting pass. We'll get all of these easily running in our ",[37,90,39],{}," example except for Jacoco, since that requires a secret token we do not have - though I will show you how to configure that in your own projects.",[42,93,95],{"id":94},"setting-up-gitlab-ci","Setting up GitLab CI",[12,97,98,99,101],{},"We want to be able to configure our project so that our app is built, and it has the complete suite of tests run upon check-in. To do so, we have to create our GitLab CI configuration file, called ",[37,100,39],{},", and place it in the root of our project.",[12,103,104,105,107],{},"So, first things first: If you're just here for a snippet to copy-paste, here is a ",[37,106,39],{}," that will build and test the Materialistic app:",[109,110,115],"pre",{"className":111,"code":112,"language":113,"meta":114,"style":114},"language-yml shiki shiki-themes github-light","image: openjdk:8-jdk\n\nvariables:\n  ANDROID_COMPILE_SDK: \"28\"\n  ANDROID_BUILD_TOOLS: \"28.0.2\"\n  ANDROID_SDK_TOOLS:   \"4333796\"\n\nbefore_script:\n  - apt-get --quiet update --yes\n  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n  - unzip -d android-sdk-linux android-sdk.zip\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n  - export ANDROID_HOME=$PWD/android-sdk-linux\n  - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n  - chmod +x ./gradlew\n  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n  - set +o pipefail\n  - yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n  - set -o pipefail\n\nstages:\n  - build\n  - test\n\nlintDebug:\n  stage: build\n  script:\n    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n\nassembleDebug:\n  stage: build\n  script:\n    - ./gradlew assembleDebug\n  artifacts:\n    paths:\n    - app/build/outputs/\n\ndebugTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain :app:testDebug\n\n","yml","",[37,116,117,134,141,150,161,172,184,189,197,206,214,222,230,238,246,254,262,270,278,285,293,301,309,314,322,330,338,343,351,361,369,378,383,391,400,407,415,423,431,439,444,452,461,468],{"__ignoreMap":114},[118,119,122,126,130],"span",{"class":120,"line":121},"line",1,[118,123,125],{"class":124},"shJU0","image",[118,127,129],{"class":128},"sgsFI",": ",[118,131,133],{"class":132},"sYBdl","openjdk:8-jdk\n",[118,135,137],{"class":120,"line":136},2,[118,138,140],{"emptyLinePlaceholder":139},true,"\n",[118,142,144,147],{"class":120,"line":143},3,[118,145,146],{"class":124},"variables",[118,148,149],{"class":128},":\n",[118,151,153,156,158],{"class":120,"line":152},4,[118,154,155],{"class":124},"  ANDROID_COMPILE_SDK",[118,157,129],{"class":128},[118,159,160],{"class":132},"\"28\"\n",[118,162,164,167,169],{"class":120,"line":163},5,[118,165,166],{"class":124},"  ANDROID_BUILD_TOOLS",[118,168,129],{"class":128},[118,170,171],{"class":132},"\"28.0.2\"\n",[118,173,175,178,181],{"class":120,"line":174},6,[118,176,177],{"class":124},"  ANDROID_SDK_TOOLS",[118,179,180],{"class":128},":   ",[118,182,183],{"class":132},"\"4333796\"\n",[118,185,187],{"class":120,"line":186},7,[118,188,140],{"emptyLinePlaceholder":139},[118,190,192,195],{"class":120,"line":191},8,[118,193,194],{"class":124},"before_script",[118,196,149],{"class":128},[118,198,200,203],{"class":120,"line":199},9,[118,201,202],{"class":128},"  - ",[118,204,205],{"class":132},"apt-get --quiet update --yes\n",[118,207,209,211],{"class":120,"line":208},10,[118,210,202],{"class":128},[118,212,213],{"class":132},"apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n",[118,215,217,219],{"class":120,"line":216},11,[118,218,202],{"class":128},[118,220,221],{"class":132},"wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n",[118,223,225,227],{"class":120,"line":224},12,[118,226,202],{"class":128},[118,228,229],{"class":132},"unzip -d android-sdk-linux android-sdk.zip\n",[118,231,233,235],{"class":120,"line":232},13,[118,234,202],{"class":128},[118,236,237],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n",[118,239,241,243],{"class":120,"line":240},14,[118,242,202],{"class":128},[118,244,245],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n",[118,247,249,251],{"class":120,"line":248},15,[118,250,202],{"class":128},[118,252,253],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n",[118,255,257,259],{"class":120,"line":256},16,[118,258,202],{"class":128},[118,260,261],{"class":132},"export ANDROID_HOME=$PWD/android-sdk-linux\n",[118,263,265,267],{"class":120,"line":264},17,[118,266,202],{"class":128},[118,268,269],{"class":132},"export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n",[118,271,273,275],{"class":120,"line":272},18,[118,274,202],{"class":128},[118,276,277],{"class":132},"chmod +x ./gradlew\n",[118,279,281],{"class":120,"line":280},19,[118,282,284],{"class":283},"sAwPA","  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n",[118,286,288,290],{"class":120,"line":287},20,[118,289,202],{"class":128},[118,291,292],{"class":132},"set +o pipefail\n",[118,294,296,298],{"class":120,"line":295},21,[118,297,202],{"class":128},[118,299,300],{"class":132},"yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n",[118,302,304,306],{"class":120,"line":303},22,[118,305,202],{"class":128},[118,307,308],{"class":132},"set -o pipefail\n",[118,310,312],{"class":120,"line":311},23,[118,313,140],{"emptyLinePlaceholder":139},[118,315,317,320],{"class":120,"line":316},24,[118,318,319],{"class":124},"stages",[118,321,149],{"class":128},[118,323,325,327],{"class":120,"line":324},25,[118,326,202],{"class":128},[118,328,329],{"class":132},"build\n",[118,331,333,335],{"class":120,"line":332},26,[118,334,202],{"class":128},[118,336,337],{"class":132},"test\n",[118,339,341],{"class":120,"line":340},27,[118,342,140],{"emptyLinePlaceholder":139},[118,344,346,349],{"class":120,"line":345},28,[118,347,348],{"class":124},"lintDebug",[118,350,149],{"class":128},[118,352,354,357,359],{"class":120,"line":353},29,[118,355,356],{"class":124},"  stage",[118,358,129],{"class":128},[118,360,329],{"class":132},[118,362,364,367],{"class":120,"line":363},30,[118,365,366],{"class":124},"  script",[118,368,149],{"class":128},[118,370,372,375],{"class":120,"line":371},31,[118,373,374],{"class":128},"    - ",[118,376,377],{"class":132},"./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n",[118,379,381],{"class":120,"line":380},32,[118,382,140],{"emptyLinePlaceholder":139},[118,384,386,389],{"class":120,"line":385},33,[118,387,388],{"class":124},"assembleDebug",[118,390,149],{"class":128},[118,392,394,396,398],{"class":120,"line":393},34,[118,395,356],{"class":124},[118,397,129],{"class":128},[118,399,329],{"class":132},[118,401,403,405],{"class":120,"line":402},35,[118,404,366],{"class":124},[118,406,149],{"class":128},[118,408,410,412],{"class":120,"line":409},36,[118,411,374],{"class":128},[118,413,414],{"class":132},"./gradlew assembleDebug\n",[118,416,418,421],{"class":120,"line":417},37,[118,419,420],{"class":124},"  artifacts",[118,422,149],{"class":128},[118,424,426,429],{"class":120,"line":425},38,[118,427,428],{"class":124},"    paths",[118,430,149],{"class":128},[118,432,434,436],{"class":120,"line":433},39,[118,435,374],{"class":128},[118,437,438],{"class":132},"app/build/outputs/\n",[118,440,442],{"class":120,"line":441},40,[118,443,140],{"emptyLinePlaceholder":139},[118,445,447,450],{"class":120,"line":446},41,[118,448,449],{"class":124},"debugTests",[118,451,149],{"class":128},[118,453,455,457,459],{"class":120,"line":454},42,[118,456,356],{"class":124},[118,458,129],{"class":128},[118,460,337],{"class":132},[118,462,464,466],{"class":120,"line":463},43,[118,465,366],{"class":124},[118,467,149],{"class":128},[118,469,471,473],{"class":120,"line":470},44,[118,472,374],{"class":128},[118,474,475],{"class":132},"./gradlew -Pci --console=plain :app:testDebug\n",[12,477,478],{},"Well, that's a lot of code! Let's break it down.",[62,480,482,483],{"id":481},"understanding-gitlab-ciyml","Understanding ",[37,484,39],{},[486,487,489],"h4",{"id":488},"defining-the-docker-image","Defining the Docker Image",[109,491,493],{"className":111,"code":492,"language":113,"meta":114,"style":114},"image: openjdk:8-jdk\n",[37,494,495],{"__ignoreMap":114},[118,496,497,499,501],{"class":120,"line":121},[118,498,125],{"class":124},[118,500,129],{"class":128},[118,502,133],{"class":132},[12,504,505,506,511,512,517,518,523,524,529],{},"This tells ",[16,507,510],{"href":508,"rel":509},"https://docs.gitlab.com/ci/runners/",[],"GitLab Runners"," (the things that are executing our build) what ",[16,513,516],{"href":514,"rel":515},"https://hub.docker.com/explore/",[],"Docker image"," to use. If you're not familiar with ",[16,519,522],{"href":520,"rel":521},"https://hub.docker.com/",[],"Docker",", the TL;DR is that Docker provides a way to create a completely isolated version of a virtual operating system running in its own ",[16,525,528],{"href":526,"rel":527},"https://www.sdxcentral.com/cloud/containers/definitions/what-is-docker-container-open-source-project/",[],"container",". Anything running inside the container thinks it has the whole machine to itself, but in reality there can be many containers running on a single machine. Unlike full virtual machines, Docker containers are super fast to create and destroy, making them great choices for setting up temporary environments for building and testing.",[12,531,532,533,542],{},"This ",[16,534,537,538,541],{"href":535,"rel":536},"https://hub.docker.com/_/openjdk/",[],"Docker image (",[37,539,540],{},"openjdk:8-jdk",")"," works perfectly for our use case, as it is just a barebones installation of Debian with Java pre-installed. We then run additional commands further down in our config to make our image capable of building Android apps.",[486,544,546],{"id":545},"defining-variables","Defining variables",[109,548,550],{"className":111,"code":549,"language":113,"meta":114,"style":114},"variables:\n  ANDROID_COMPILE_SDK: \"28\"\n  ANDROID_BUILD_TOOLS: \"28.0.2\"\n  ANDROID_SDK_TOOLS:   \"4333796\"\n\n",[37,551,552,558,566,574],{"__ignoreMap":114},[118,553,554,556],{"class":120,"line":121},[118,555,146],{"class":124},[118,557,149],{"class":128},[118,559,560,562,564],{"class":120,"line":136},[118,561,155],{"class":124},[118,563,129],{"class":128},[118,565,160],{"class":132},[118,567,568,570,572],{"class":120,"line":143},[118,569,166],{"class":124},[118,571,129],{"class":128},[118,573,171],{"class":132},[118,575,576,578,580],{"class":120,"line":152},[118,577,177],{"class":124},[118,579,180],{"class":128},[118,581,183],{"class":132},[12,583,584,585,60],{},"These are variables we'll use throughout our script. They're named to match the properties you would typically specify in your app's ",[37,586,587],{},"build.gradle",[589,590,591,601,610],"ul",{},[592,593,594,597,598,60],"li",{},[37,595,596],{},"ANDROID_COMPILE_SDK"," is the version of Android you're compiling with. It should match ",[37,599,600],{},"compileSdkVersion",[592,602,603,606,607,60],{},[37,604,605],{},"ANDROID_BUILD_TOOLS"," is the version of the Android build tools you are using. It should match ",[37,608,609],{},"buildToolsVersion",[592,611,612,615,616,621],{},[37,613,614],{},"ANDROID_SDK_TOOLS"," is a little funny. It's what version of the command line tools we're going to download from the ",[16,617,620],{"href":618,"rel":619},"https://developer.android.com/studio/index.html",[],"official site",". So, that number really just comes from the latest version available there.",[486,623,625],{"id":624},"installing-packages","Installing packages",[109,627,629],{"className":111,"code":628,"language":113,"meta":114,"style":114},"before_script:\n  - apt-get --quiet update --yes\n  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n\n",[37,630,631,637,643],{"__ignoreMap":114},[118,632,633,635],{"class":120,"line":121},[118,634,194],{"class":124},[118,636,149],{"class":128},[118,638,639,641],{"class":120,"line":136},[118,640,202],{"class":128},[118,642,205],{"class":132},[118,644,645,647],{"class":120,"line":143},[118,646,202],{"class":128},[118,648,213],{"class":132},[12,650,651],{},"This starts the block of the commands that will be run before each job in our config.",[12,653,654,655,658,659,658,662,665],{},"These commands ensure that our package repository listings are up to date, and it installs packages we'll be using later on, namely: ",[37,656,657],{},"wget",", ",[37,660,661],{},"tar",[37,663,664],{},"unzip",", and some packages that are necessary to allow 64-bit machines to run Android's 32-bit tools.",[486,667,669],{"id":668},"installing-the-android-sdk","Installing the Android SDK",[109,671,673],{"className":111,"code":672,"language":113,"meta":114,"style":114},"\n  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n  - unzip -d android-sdk-linux android-sdk.zip\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n\n",[37,674,675,679,685,691,697,703],{"__ignoreMap":114},[118,676,677],{"class":120,"line":121},[118,678,140],{"emptyLinePlaceholder":139},[118,680,681,683],{"class":120,"line":136},[118,682,202],{"class":128},[118,684,221],{"class":132},[118,686,687,689],{"class":120,"line":143},[118,688,202],{"class":128},[118,690,229],{"class":132},[118,692,693,695],{"class":120,"line":152},[118,694,202],{"class":128},[118,696,237],{"class":132},[118,698,699,701],{"class":120,"line":163},[118,700,202],{"class":128},[118,702,245],{"class":132},[118,704,705,707],{"class":120,"line":174},[118,706,202],{"class":128},[118,708,253],{"class":132},[12,710,711,712,714,715,718],{},"Here we're downloading the Android SDK tools from their official location, using our ",[37,713,614],{}," variable to specify the version. Afterwards, we're unzipping the tools and running a series of ",[37,716,717],{},"sdkmanager"," commands to install the necessary Android SDK packages that will allow our app to build.",[486,720,722],{"id":721},"setting-up-the-environment","Setting up the environment",[109,724,726],{"className":111,"code":725,"language":113,"meta":114,"style":114},"\n  - export ANDROID_HOME=$PWD/android-sdk-linux\n  - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n  - chmod +x ./gradlew\n  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n  - set +o pipefail\n  - yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n  - set -o pipefail\n\n",[37,727,728,732,738,744,750,754,760,766],{"__ignoreMap":114},[118,729,730],{"class":120,"line":121},[118,731,140],{"emptyLinePlaceholder":139},[118,733,734,736],{"class":120,"line":136},[118,735,202],{"class":128},[118,737,261],{"class":132},[118,739,740,742],{"class":120,"line":143},[118,741,202],{"class":128},[118,743,269],{"class":132},[118,745,746,748],{"class":120,"line":152},[118,747,202],{"class":128},[118,749,277],{"class":132},[118,751,752],{"class":120,"line":163},[118,753,284],{"class":283},[118,755,756,758],{"class":120,"line":174},[118,757,202],{"class":128},[118,759,292],{"class":132},[118,761,762,764],{"class":120,"line":186},[118,763,202],{"class":128},[118,765,300],{"class":132},[118,767,768,770],{"class":120,"line":191},[118,769,202],{"class":128},[118,771,308],{"class":132},[12,773,774,775,777,778,781,782,785,786,789,790,793],{},"Finally, we wrap up the ",[37,776,194],{}," section of our config with a few remaining tasks. First, we set the ",[37,779,780],{},"ANDROID_HOME"," environment variable to the SDK location, which is necessary for our app to build. Next, we add the platform tools to our ",[37,783,784],{},"PATH",", allowing us to use the ",[37,787,788],{},"adb"," command without specifying its full path, which is important when we run a downloaded script later. Next, we ensure that ",[37,791,792],{},"gradlew"," is executable, as sometimes Git will mess up permissions.",[12,795,796,797,800,801,804,805,808],{},"The next command ",[37,798,799],{},"yes | android-sdk-linux/tools/bin/sdkmanager --licenses"," is responsible for accepting the SDK licenses. Because the unix ",[37,802,803],{},"yes"," command results in an EPIPE error once the pipe is broken (when the sdkmanager quits normally), we temporarily wrap the command in ",[37,806,807],{},"+o pipefile"," so that it does not terminate script execution when it fails.",[486,810,812],{"id":811},"defining-the-stages","Defining the stages",[109,814,816],{"className":111,"code":815,"language":113,"meta":114,"style":114},"stages:\n  - build\n  - test\n\n",[37,817,818,824,830],{"__ignoreMap":114},[118,819,820,822],{"class":120,"line":121},[118,821,319],{"class":124},[118,823,149],{"class":128},[118,825,826,828],{"class":120,"line":136},[118,827,202],{"class":128},[118,829,329],{"class":132},[118,831,832,834],{"class":120,"line":143},[118,833,202],{"class":128},[118,835,337],{"class":132},[12,837,838,839,843,844,849,850,853,854,857,858,860,861,863],{},"Here we're defining the different ",[16,840,319],{"href":841,"rel":842},"https://docs.gitlab.com/ci/yaml/#stages",[]," of our build. We can call these anything we want. A stage can be thought of as a group of ",[16,845,848],{"href":846,"rel":847},"https://docs.gitlab.com/ci/jobs/",[],"jobs",". All of the jobs in the same stage happen in parallel, and all jobs in one stage must be completed before the jobs in the subsequent stage begin. We've defined two stages: ",[37,851,852],{},"build"," and ",[37,855,856],{},"test",". They do exactly what you think: the ",[37,859,852],{}," stage ensures the app compiles, and the ",[37,862,856],{}," stage runs our unit and functional tests.",[486,865,867],{"id":866},"building-the-app","Building the app",[109,869,871],{"className":111,"code":870,"language":113,"meta":114,"style":114},"lintDebug:\n  stage: build\n  script:\n    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n\nassembleDebug:\n  stage: build\n  script:\n    - ./gradlew assembleDebug\n  artifacts:\n    paths:\n    - app/build/outputs/\n\n",[37,872,873,879,887,893,899,903,909,917,923,929,935,941],{"__ignoreMap":114},[118,874,875,877],{"class":120,"line":121},[118,876,348],{"class":124},[118,878,149],{"class":128},[118,880,881,883,885],{"class":120,"line":136},[118,882,356],{"class":124},[118,884,129],{"class":128},[118,886,329],{"class":132},[118,888,889,891],{"class":120,"line":143},[118,890,366],{"class":124},[118,892,149],{"class":128},[118,894,895,897],{"class":120,"line":152},[118,896,374],{"class":128},[118,898,377],{"class":132},[118,900,901],{"class":120,"line":163},[118,902,140],{"emptyLinePlaceholder":139},[118,904,905,907],{"class":120,"line":174},[118,906,388],{"class":124},[118,908,149],{"class":128},[118,910,911,913,915],{"class":120,"line":186},[118,912,356],{"class":124},[118,914,129],{"class":128},[118,916,329],{"class":132},[118,918,919,921],{"class":120,"line":191},[118,920,366],{"class":124},[118,922,149],{"class":128},[118,924,925,927],{"class":120,"line":199},[118,926,374],{"class":128},[118,928,414],{"class":132},[118,930,931,933],{"class":120,"line":208},[118,932,420],{"class":124},[118,934,149],{"class":128},[118,936,937,939],{"class":120,"line":216},[118,938,428],{"class":124},[118,940,149],{"class":128},[118,942,943,945],{"class":120,"line":224},[118,944,374],{"class":128},[118,946,438],{"class":132},[12,948,949,950,952,953,956],{},"This defines our first job, called ",[37,951,852],{},". It has two parts - a linter to ensure that the submitted code is up to snuff, and the actual compilation of the code (and configuration of the ",[37,954,955],{},"artifacts"," that GitLab should expect to find). These are run in parallel for maximum efficiency.",[486,958,960],{"id":959},"running-tests","Running tests",[109,962,964],{"className":111,"code":963,"language":113,"meta":114,"style":114},"debugTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain :app:testDebug\n\n",[37,965,966,972,980,986],{"__ignoreMap":114},[118,967,968,970],{"class":120,"line":121},[118,969,449],{"class":124},[118,971,149],{"class":128},[118,973,974,976,978],{"class":120,"line":136},[118,975,356],{"class":124},[118,977,129],{"class":128},[118,979,337],{"class":132},[118,981,982,984],{"class":120,"line":143},[118,983,366],{"class":124},[118,985,149],{"class":128},[118,987,988,990],{"class":120,"line":152},[118,989,374],{"class":128},[118,991,475],{"class":132},[12,993,994,995,997,998,1000],{},"This defines a job called ",[37,996,449],{}," that runs during the ",[37,999,856],{}," stage. Nothing too crazy here about setting something simple like this up!",[12,1002,1003,1004,1007],{},"If we had wanted to get Jacoco also working, that would be very straightforward. Simply adding a section as follows would work - the only additional thing you'd need to do is add a secret variable containing your personal ",[37,1005,1006],{},"COVERALLS_REPO_TOKEN",":",[109,1009,1011],{"className":111,"code":1010,"language":113,"meta":114,"style":114},"coverageTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain jacocoTestReport coveralls\n\n",[37,1012,1013,1020,1028,1034],{"__ignoreMap":114},[118,1014,1015,1018],{"class":120,"line":121},[118,1016,1017],{"class":124},"coverageTests",[118,1019,149],{"class":128},[118,1021,1022,1024,1026],{"class":120,"line":136},[118,1023,356],{"class":124},[118,1025,129],{"class":128},[118,1027,337],{"class":132},[118,1029,1030,1032],{"class":120,"line":143},[118,1031,366],{"class":124},[118,1033,149],{"class":128},[118,1035,1036,1038],{"class":120,"line":152},[118,1037,374],{"class":128},[118,1039,1040],{"class":132},"./gradlew -Pci --console=plain jacocoTestReport coveralls\n",[42,1042,1044],{"id":1043},"run-your-new-ci-setup","Run your new CI setup",[12,1046,1047,1048,1050,1051,1055],{},"After you've added your new ",[37,1049,39],{}," file to the root of your directory, just push your changes to the appropriate branch and off you go! You can see your running builds in the ",[1052,1053,1054],"strong",{},"Pipelines"," tab of your project. You can even watch your build execute live and see the runner's output, allowing you to debug problems easily.",[12,1057,1058],{},[1059,1060],"img",{"alt":1061,"src":1062},"Pipelines tab screenshot","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398346/blog/Content%20Images/gitlab-ci-for-android-2018/tutorial-01.png",[12,1064,1065],{},"After your build is done, you can retrieve your build artifacts:",[589,1067,1068],{},[592,1069,1070],{},"First, click on your completed build, then navigate to the Jobs tab:",[12,1072,1073],{},[1059,1074],{"alt":1075,"src":1076},"Build details button screenshot","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398346/blog/Content%20Images/gitlab-ci-for-android-2018/tutorial-02.png",[12,1078,1079],{},"From here, simply click on the download button to download your build artifacts.",[42,1081,1083],{"id":1082},"conclusion","Conclusion",[12,1085,1086],{},"So, there you have it! You now know how to create a GitLab CI config that will ensure your app:",[589,1088,1089,1092,1095],{},[592,1090,1091],{},"Compiles",[592,1093,1094],{},"Passes tests",[592,1096,1097,1098,1103],{},"Allows you to access your build artifacts (like your ",[16,1099,1102],{"href":1100,"rel":1101},"https://en.wikipedia.org/wiki/Android_application_package",[],"APK",") afterwards.",[12,1105,1106,1107],{},"You can take a look at my local copy of the Materialistic repository, with everything up and running, at ",[16,1108,1111],{"href":1109,"rel":1110},"https://gitlab.com/jyavorska/androidblog-2018",[],"this link",[12,1113,1114],{},"Enjoy your newfound app stability :)",[1116,1117,1118],"style",{},"\n  img {\n    display: block;\n    margin: 0 auto 20px auto;\n  }\n  .special-h4 {\n    margin-top: 20px !important;\n  }\n",[1116,1120,1121],{},"html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":114,"searchDepth":136,"depth":136,"links":1123},[1124,1127,1131,1132],{"id":44,"depth":136,"text":45,"children":1125},[1126],{"id":64,"depth":143,"text":65},{"id":94,"depth":136,"text":95,"children":1128},[1129],{"id":481,"depth":143,"text":1130},"Understanding .gitlab-ci.yml",{"id":1043,"depth":136,"text":1044},{"id":1082,"depth":136,"text":1083},"engineering","2018-10-24","Learn how to set up GitLab CI to ensure your Android app compiles and passes tests.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666699/Blog/Hero%20Images/banner.jpg",{},"/en-us/blog/setting-up-gitlab-ci-for-android-projects",{"title":5,"description":1135,"ogTitle":5,"ogDescription":1135,"noIndex":1138,"ogImage":1139,"ogUrl":1143,"ogSiteName":1144,"ogType":1145,"canonicalUrls":1143},"https://about.gitlab.com/blog/setting-up-gitlab-ci-for-android-projects","https://about.gitlab.com","article","setting-up-gitlab-ci-for-android-projects","en-us/blog/setting-up-gitlab-ci-for-android-projects",[1149,1150],"CI/CD","user stories","BlogPost","Q8hV_QL1ZF_ruu_6SjJK20lMhK6bbR5opXZtCBfu4Sk",{"logo":1154,"freeTrial":1159,"sales":1164,"login":1169,"items":1174,"search":1507,"minimal":1539,"duo":1558,"switchNav":1567,"pricingDeployment":1578},{"config":1155},{"href":1156,"dataGaName":1157,"dataGaLocation":1158},"/","gitlab logo","header",{"text":1160,"config":1161},"Get free trial",{"href":1162,"dataGaName":1163,"dataGaLocation":1158},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1165,"config":1166},"Request a demo",{"href":1167,"dataGaName":1168,"dataGaLocation":1158},"/request-a-demo/","sales",{"text":1170,"config":1171},"Sign in",{"href":1172,"dataGaName":1173,"dataGaLocation":1158},"https://gitlab.com/users/sign_in/","sign in",[1175,1259,1347,1352,1432,1485],{"text":1176,"left":139,"config":1177,"menu":1179},"Platform",{"dataNavLevelOne":1178},"platform",{"type":1180,"link":1181,"columns":1185,"feature":1248},"lists",{"text":1182,"config":1183},"Explore the Platform",{"href":1184,"dataGaName":1178,"dataGaLocation":1158},"/platform/",[1186,1207,1230],{"title":1187,"items":1188},"DevOps",[1189,1192,1197,1202],{"text":1149,"config":1190},{"href":28,"dataGaLocation":1158,"dataGaName":1191},"ci/cd",{"text":1193,"config":1194},"Source Code Management",{"href":1195,"dataGaLocation":1158,"dataGaName":1196},"/solutions/source-code-management/","source code management",{"text":1198,"config":1199},"Agile Delivery",{"href":1200,"dataGaLocation":1158,"dataGaName":1201},"/solutions/agile-delivery/","agile delivery",{"text":1203,"config":1204},"Artifact Management",{"href":1205,"dataGaLocation":1158,"dataGaName":1206},"/artifact-central/","artifact management",{"title":1208,"items":1209},"Security & Governance",[1210,1215,1220,1225],{"text":1211,"config":1212},"Application Security Testing",{"href":1213,"dataGaLocation":1158,"dataGaName":1214},"/solutions/application-security-testing/","application security testing",{"text":1216,"config":1217},"Governance & Compliance",{"href":1218,"dataGaLocation":1158,"dataGaName":1219},"/solutions/software-compliance/","governance and compliance",{"text":1221,"config":1222},"Secrets Management",{"href":1223,"dataGaLocation":1158,"dataGaName":1224},"/gitlab-secrets-manager/","secrets management",{"text":1226,"config":1227},"Supply Chain Security",{"href":1228,"dataGaLocation":1158,"dataGaName":1229},"/solutions/supply-chain/","supply chain security",{"title":1231,"items":1232},"Agentic AI & Context",[1233,1238,1243],{"text":1234,"config":1235},"Duo Agent Platform",{"href":1236,"dataGaLocation":1158,"dataGaName":1237},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1239,"config":1240},"Orbit Context Graph",{"href":1241,"dataGaLocation":1158,"dataGaName":1242},"/gitlab-orbit/","orbit",{"text":1244,"config":1245},"Visibility & Measurement",{"href":1246,"dataGaLocation":1158,"dataGaName":1247},"/solutions/visibility-measurement/","visibility and measurement",{"config":1249,"title":1252,"text":1253,"link":1254},{"background":1250,"textColor":1251},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1255,"config":1256},"Read the announcement",{"href":1257,"dataGaName":1258,"dataGaLocation":1158},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1260,"left":139,"config":1261,"menu":1263},"Solutions",{"dataNavLevelOne":1262},"solutions",{"type":1180,"link":1264,"columns":1268,"feature":1338},{"text":1265,"config":1266},"View all Solutions",{"href":1267,"dataGaName":1262,"dataGaLocation":1158},"/solutions/",[1269,1287,1305],{"title":1270,"items":1271},"Outcomes",[1272,1277,1282],{"text":1273,"config":1274},"DevOps Modernization",{"href":1275,"dataGaLocation":1158,"dataGaName":1276},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1278,"config":1279},"Security Modernization",{"href":1280,"dataGaLocation":1158,"dataGaName":1281},"/assessments/security-modernization-assessment/","security modernization",{"text":1283,"config":1284},"AI Modernization",{"href":1285,"dataGaLocation":1158,"dataGaName":1286},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1288,"items":1289},"By size",[1290,1295,1300],{"text":1291,"config":1292},"Enterprise",{"href":1293,"dataGaLocation":1158,"dataGaName":1294},"/enterprise/","enterprise",{"text":1296,"config":1297},"Small Business",{"href":1298,"dataGaLocation":1158,"dataGaName":1299},"/small-business/","small business",{"text":1301,"config":1302},"Startups",{"href":1303,"dataGaLocation":1158,"dataGaName":1304},"/solutions/startups/","startups",{"title":1306,"items":1307},"Industries",[1308,1313,1318,1323,1328,1333],{"text":1309,"config":1310},"Financial Services",{"href":1311,"dataGaLocation":1158,"dataGaName":1312},"/solutions/finance/","financial services",{"text":1314,"config":1315},"Public Sector",{"href":1316,"dataGaLocation":1158,"dataGaName":1317},"/solutions/public-sector/","public sector",{"text":1319,"config":1320},"Telecommunications",{"href":1321,"dataGaLocation":1158,"dataGaName":1322},"/solutions/telecommunications/","telecommunications",{"text":1324,"config":1325},"Automotive",{"href":1326,"dataGaLocation":1158,"dataGaName":1327},"/solutions/automotive/","automotive",{"text":1329,"config":1330},"Education",{"href":1331,"dataGaLocation":1158,"dataGaName":1332},"/solutions/education/","education",{"text":1334,"config":1335},"Aerospace",{"href":1336,"dataGaLocation":1158,"dataGaName":1337},"/solutions/aerospace/","aerospace",{"config":1339,"title":1340,"text":1341,"link":1342},{"background":1250,"textColor":1251},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1343,"config":1344},"Explore the standard",{"href":1345,"dataGaName":1346,"dataGaLocation":1158},"/gitlab-security-standard/","gitlab security standard",{"text":1348,"config":1349},"Pricing",{"href":1350,"dataGaName":1351,"dataGaLocation":1158,"dataNavLevelOne":1351},"/pricing/","pricing",{"text":1353,"config":1354,"menu":1356},"Resources",{"dataNavLevelOne":1355},"resources",{"type":1180,"link":1357,"columns":1361,"feature":1423},{"text":1358,"config":1359},"View all resources",{"href":1360,"dataGaName":1355,"dataGaLocation":1158},"/resources/",[1362,1395],{"title":1363,"items":1364},"Discover",[1365,1370,1375,1380,1385,1390],{"text":1366,"config":1367},"Docs",{"href":1368,"dataGaName":1369,"dataGaLocation":1158},"https://docs.gitlab.com/","docs",{"text":1371,"config":1372},"University",{"href":1373,"dataGaName":1374,"dataGaLocation":1158},"https://university.gitlab.com/","university",{"text":1376,"config":1377},"Demo Series",{"href":1378,"dataGaName":1379,"dataGaLocation":1158},"/gitlab-technical-demo-series/","demo series",{"text":1381,"config":1382},"Demo Hub",{"href":1383,"dataGaName":1384,"dataGaLocation":1158},"/demo-hub/","demo hub",{"text":1386,"config":1387},"Services",{"href":1388,"dataGaName":1389,"dataGaLocation":1158},"/services/","services",{"text":1391,"config":1392},"Well Architected",{"href":1393,"dataGaName":1394,"dataGaLocation":1158},"/resources/well-architected/","well architected",{"title":1396,"items":1397},"Connect",[1398,1403,1408,1413,1418],{"text":1399,"config":1400},"Blog",{"href":1401,"dataGaName":1402,"dataGaLocation":1158},"/blog/","blog",{"text":1404,"config":1405},"Community",{"href":1406,"dataGaName":1407,"dataGaLocation":1158},"/community/","community",{"text":1409,"config":1410},"Customers",{"href":1411,"dataGaName":1412,"dataGaLocation":1158},"/customers/","customers",{"text":1414,"config":1415},"Partners",{"href":1416,"dataGaName":1417,"dataGaLocation":1158},"/partners/","partners",{"text":1419,"config":1420},"Events",{"href":1421,"dataGaName":1422,"dataGaLocation":1158},"/events/","events",{"config":1424,"title":1425,"text":1426,"link":1427},{"background":1250,"textColor":1251},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1428,"config":1429},"Read the latest",{"href":1430,"dataGaName":1431,"dataGaLocation":1158},"/whats-new/","whats new",{"text":1433,"config":1434,"menu":1436},"Company",{"dataNavLevelOne":1435},"company",{"type":1180,"columns":1437},[1438],{"items":1439},[1440,1445,1450,1455,1460,1465,1470,1475,1480],{"text":1441,"config":1442},"About",{"href":1443,"dataGaName":1444,"dataGaLocation":1158},"/company/","about",{"text":1446,"config":1447,"footerGa":1449},"Jobs",{"href":1448,"dataGaName":848,"dataGaLocation":1158},"/jobs/",{"dataGaName":848},{"text":1451,"config":1452},"Press",{"href":1453,"dataGaName":1454,"dataGaLocation":1158},"/press/","press",{"text":1456,"config":1457},"Handbook",{"href":1458,"dataGaName":1459,"dataGaLocation":1158},"https://handbook.gitlab.com/","handbook",{"text":1461,"config":1462},"Leadership",{"href":1463,"dataGaName":1464,"dataGaLocation":1158},"/company/team/e-group/","leadership",{"text":1466,"config":1467},"Investor relations",{"href":1468,"dataGaName":1469,"dataGaLocation":1158},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1471,"config":1472},"Trust Center",{"href":1473,"dataGaName":1474,"dataGaLocation":1158},"/security/","trust center",{"text":1476,"config":1477},"AI Transparency Center",{"href":1478,"dataGaName":1479,"dataGaLocation":1158},"/ai-transparency-center/","ai transparency center",{"text":1481,"config":1482},"Newsletter",{"href":1483,"dataGaName":1484,"dataGaLocation":1158},"/company/contact/#contact-forms","newsletter",{"text":1486,"config":1487,"menu":1488},"Contact us",{"dataNavLevelOne":1435},{"type":1180,"columns":1489},[1490],{"items":1491},[1492,1497,1502],{"text":1493,"config":1494},"Talk to sales",{"href":1495,"dataGaName":1496,"dataGaLocation":1158},"/sales/","talk to sales",{"text":1498,"config":1499},"Support portal",{"href":1500,"dataGaName":1501,"dataGaLocation":1158},"https://support.gitlab.com/hc/en-us","support portal",{"text":1503,"config":1504},"Customer portal",{"href":1505,"dataGaName":1506,"dataGaLocation":1158},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1508,"login":1509,"suggestions":1516},"Close",{"text":1510,"link":1511},"To search repositories and projects, login to",{"text":1512,"config":1513},"gitlab.com",{"href":1172,"dataGaName":1514,"dataGaLocation":1515},"search login","search",{"text":1517,"default":1518},"Suggestions",[1519,1522,1525,1527,1531,1535],{"text":1520,"config":1521},"GitLab Duo Agent Platform",{"href":1236,"dataGaName":1520,"dataGaLocation":1515},{"text":1523,"config":1524},"Code Suggestions (AI)",{"href":1236,"dataGaName":1523,"dataGaLocation":1515},{"text":1149,"config":1526},{"href":28,"dataGaName":1149,"dataGaLocation":1515},{"text":1528,"config":1529},"GitLab on AWS",{"href":1530,"dataGaName":1528,"dataGaLocation":1515},"/partners/technology-partners/aws/",{"text":1532,"config":1533},"GitLab on Google Cloud",{"href":1534,"dataGaName":1532,"dataGaLocation":1515},"/partners/technology-partners/google-cloud-platform/",{"text":1536,"config":1537},"Why GitLab?",{"href":1538,"dataGaName":1536,"dataGaLocation":1515},"/why-gitlab/",{"freeTrial":1540,"mobileIcon":1545,"desktopIcon":1550,"secondaryButton":1553},{"text":1541,"config":1542},"Start free trial",{"href":1543,"dataGaName":1163,"dataGaLocation":1544},"https://gitlab.com/-/trials/new/","nav",{"altText":1546,"config":1547},"Gitlab Icon",{"src":1548,"dataGaName":1549,"dataGaLocation":1544},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1546,"config":1551},{"src":1552,"dataGaName":1549,"dataGaLocation":1544},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1554,"config":1555},"Get Started",{"href":1556,"dataGaName":1557,"dataGaLocation":1544},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1559,"mobileIcon":1563,"desktopIcon":1565},{"text":1560,"config":1561},"Learn more about GitLab Duo",{"href":1236,"dataGaName":1562,"dataGaLocation":1544},"gitlab duo",{"altText":1546,"config":1564},{"src":1548,"dataGaName":1549,"dataGaLocation":1544},{"altText":1546,"config":1566},{"src":1552,"dataGaName":1549,"dataGaLocation":1544},{"button":1568,"mobileIcon":1573,"desktopIcon":1575},{"text":1569,"config":1570},"/switch",{"href":1571,"dataGaName":1572,"dataGaLocation":1544},"#contact","switch",{"altText":1546,"config":1574},{"src":1548,"dataGaName":1549,"dataGaLocation":1544},{"altText":1546,"config":1576},{"src":1577,"dataGaName":1549,"dataGaLocation":1544},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1579,"mobileIcon":1584,"desktopIcon":1586},{"text":1580,"config":1581},"Back to pricing",{"href":1350,"dataGaName":1582,"dataGaLocation":1544,"icon":1583},"back to pricing","GoBack",{"altText":1546,"config":1585},{"src":1548,"dataGaName":1549,"dataGaLocation":1544},{"altText":1546,"config":1587},{"src":1552,"dataGaName":1549,"dataGaLocation":1544},{"title":1589,"button":1590,"config":1594},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1255,"config":1591},{"href":1257,"dataGaName":1592,"dataGaLocation":1593},"orbit-ga-banner","global-banner",{"layout":1595,"disabled":1138},"release",{"data":1597},{"text":1598,"config":1599,"items":1604,"minimal":1832},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1600,"facebook":1601,"youtube":1602,"linkedin":1603},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1605,1653,1712,1759,1800],{"title":1348,"links":1606,"subMenu":1622},[1607,1612,1617],{"text":1608,"config":1609},"View plans",{"href":1350,"dataGaName":1610,"dataGaLocation":1611},"view plans","footer",{"text":1613,"config":1614},"Why Premium?",{"href":1615,"dataGaName":1616,"dataGaLocation":1611},"/pricing/premium/","why premium",{"text":1618,"config":1619},"Why Ultimate?",{"href":1620,"dataGaName":1621,"dataGaLocation":1611},"/pricing/ultimate/","why ultimate",[1623],{"title":1624,"links":1625},"Contact Us",[1626,1629,1631,1633,1638,1643,1648],{"text":1627,"config":1628},"Contact sales",{"href":1495,"dataGaName":1168,"dataGaLocation":1611},{"text":1498,"config":1630},{"href":1500,"dataGaName":1501,"dataGaLocation":1611},{"text":1503,"config":1632},{"href":1505,"dataGaName":1506,"dataGaLocation":1611},{"text":1634,"config":1635},"Status",{"href":1636,"dataGaName":1637,"dataGaLocation":1611},"https://status.gitlab.com/","status",{"text":1639,"config":1640},"Terms of use",{"href":1641,"dataGaName":1642,"dataGaLocation":1611},"/terms/","terms of use",{"text":1644,"config":1645},"Privacy statement",{"href":1646,"dataGaName":1647,"dataGaLocation":1611},"/privacy/","privacy statement",{"text":1649,"config":1650},"Cookie preferences",{"dataGaName":1651,"dataGaLocation":1611,"id":1652,"isOneTrustButton":139},"cookie preferences","ot-sdk-btn",{"title":1176,"links":1654,"subMenu":1670},[1655,1658,1660,1662,1664,1666],{"text":1656,"config":1657},"Explore the platform",{"href":1184,"dataGaName":1178,"dataGaLocation":1611},{"text":1234,"config":1659},{"href":1236,"dataGaName":1237,"dataGaLocation":1611},{"text":1149,"config":1661},{"href":28,"dataGaName":1191,"dataGaLocation":1611},{"text":1239,"config":1663},{"href":1241,"dataGaName":1242,"dataGaLocation":1611},{"text":1221,"config":1665},{"href":1223,"dataGaName":1224,"dataGaLocation":1611},{"text":1667,"config":1668},"Why GitLab",{"href":1538,"dataGaName":1669,"dataGaLocation":1611},"why gitlab",[1671],{"title":1672,"links":1673},"Topics",[1674,1678,1683,1687,1692,1697,1702,1707],{"text":1149,"config":1675},{"href":1676,"dataGaName":1677,"dataGaLocation":1611},"/topics/ci-cd/","cicd",{"text":1679,"config":1680},"GitOps",{"href":1681,"dataGaName":1682,"dataGaLocation":1611},"/topics/gitops/","gitops",{"text":1187,"config":1684},{"href":1685,"dataGaName":1686,"dataGaLocation":1611},"/topics/devops/","devops",{"text":1688,"config":1689},"Version Control",{"href":1690,"dataGaName":1691,"dataGaLocation":1611},"/topics/version-control/","version control",{"text":1693,"config":1694},"DevSecOps",{"href":1695,"dataGaName":1696,"dataGaLocation":1611},"/topics/devsecops/","devsecops",{"text":1698,"config":1699},"Cloud Native",{"href":1700,"dataGaName":1701,"dataGaLocation":1611},"/topics/cloud-native/","cloud native",{"text":1703,"config":1704},"AI for Coding",{"href":1705,"dataGaName":1706,"dataGaLocation":1611},"/topics/devops/ai-for-coding/","ai for coding",{"text":1708,"config":1709},"Agentic AI",{"href":1710,"dataGaName":1711,"dataGaLocation":1611},"/topics/agentic-ai/","agentic ai",{"title":1260,"links":1713},[1714,1717,1720,1723,1726,1729,1731,1733,1735,1737,1739,1742,1744,1747,1751,1755],{"text":1715,"config":1716},"DevOps modernization",{"href":1275,"dataGaName":1276,"dataGaLocation":1611},{"text":1718,"config":1719},"Security modernization",{"href":1280,"dataGaName":1281,"dataGaLocation":1611},{"text":1721,"config":1722},"AI modernization",{"href":1285,"dataGaName":1286,"dataGaLocation":1611},{"text":1724,"config":1725},"Financial services",{"href":1311,"dataGaName":1312,"dataGaLocation":1611},{"text":1727,"config":1728},"Public sector",{"href":1316,"dataGaName":1317,"dataGaLocation":1611},{"text":1319,"config":1730},{"href":1321,"dataGaName":1322,"dataGaLocation":1611},{"text":1324,"config":1732},{"href":1326,"dataGaName":1327,"dataGaLocation":1611},{"text":1329,"config":1734},{"href":1331,"dataGaName":1332,"dataGaLocation":1611},{"text":1334,"config":1736},{"href":1336,"dataGaName":1337,"dataGaLocation":1611},{"text":1291,"config":1738},{"href":1293,"dataGaName":1294,"dataGaLocation":1611},{"text":1740,"config":1741},"Small business",{"href":1298,"dataGaName":1299,"dataGaLocation":1611},{"text":1301,"config":1743},{"href":1303,"dataGaName":1304,"dataGaLocation":1611},{"text":1679,"config":1745},{"href":1746,"dataGaName":1682,"dataGaLocation":1611},"/solutions/gitops/",{"text":1748,"config":1749},"Software composition analysis",{"href":1228,"dataGaName":1750,"dataGaLocation":1611},"software composition analysis",{"text":1752,"config":1753},"Value stream management",{"href":1246,"dataGaName":1754,"dataGaLocation":1611},"value stream management",{"text":1756,"config":1757},"All solutions",{"href":1267,"dataGaName":1758,"dataGaLocation":1611},"all solutions",{"title":1353,"links":1760},[1761,1766,1771,1773,1775,1777,1779,1781,1783,1785,1787,1789,1791,1793,1796],{"text":1762,"config":1763},"Install",{"href":1764,"dataGaName":1765,"dataGaLocation":1611},"/install/","install",{"text":1767,"config":1768},"Quick start guides",{"href":1769,"dataGaName":1770,"dataGaLocation":1611},"/get-started/","quick setup checklists",{"text":1366,"config":1772},{"href":1368,"dataGaName":1369,"dataGaLocation":1611},{"text":1371,"config":1774},{"href":1373,"dataGaName":1374,"dataGaLocation":1611},{"text":1376,"config":1776},{"href":1378,"dataGaName":1379,"dataGaLocation":1611},{"text":1381,"config":1778},{"href":1383,"dataGaName":1384,"dataGaLocation":1611},{"text":1386,"config":1780},{"href":1388,"dataGaName":1389,"dataGaLocation":1611},{"text":1399,"config":1782},{"href":1401,"dataGaName":1402,"dataGaLocation":1611},{"text":1404,"config":1784},{"href":1406,"dataGaName":1407,"dataGaLocation":1611},{"text":1409,"config":1786},{"href":1411,"dataGaName":1412,"dataGaLocation":1611},{"text":1414,"config":1788},{"href":1416,"dataGaName":1417,"dataGaLocation":1611},{"text":1419,"config":1790},{"href":1421,"dataGaName":1422,"dataGaLocation":1611},{"text":1481,"config":1792},{"href":1483,"dataGaName":1484,"dataGaLocation":1611},{"text":1794,"config":1795},"What's new",{"href":1430,"dataGaName":1431,"dataGaLocation":1611},{"text":1797,"config":1798},"All resources",{"href":1360,"dataGaName":1799,"dataGaLocation":1611},"all resources",{"title":1433,"links":1801},[1802,1804,1806,1808,1810,1812,1814,1816,1818,1822,1827],{"text":1441,"config":1803},{"href":1443,"dataGaName":1435,"dataGaLocation":1611},{"text":1446,"config":1805},{"href":1448,"dataGaName":848,"dataGaLocation":1611},{"text":1451,"config":1807},{"href":1453,"dataGaName":1454,"dataGaLocation":1611},{"text":1456,"config":1809},{"href":1458,"dataGaName":1459,"dataGaLocation":1611},{"text":1461,"config":1811},{"href":1463,"dataGaName":1464,"dataGaLocation":1611},{"text":1466,"config":1813},{"href":1468,"dataGaName":1469,"dataGaLocation":1611},{"text":1471,"config":1815},{"href":1473,"dataGaName":1474,"dataGaLocation":1611},{"text":1476,"config":1817},{"href":1478,"dataGaName":1479,"dataGaLocation":1611},{"text":1819,"config":1820},"Sustainability",{"href":1821,"dataGaName":1819,"dataGaLocation":1611},"/sustainability/",{"text":1823,"config":1824},"Diversity, inclusion and belonging (DIB)",{"href":1825,"dataGaName":1826,"dataGaLocation":1611},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1828,"config":1829},"Modern Slavery Transparency Statement",{"href":1830,"dataGaName":1831,"dataGaLocation":1611},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1833},[1834,1837,1840],{"text":1835,"config":1836},"Terms",{"href":1641,"dataGaName":1642,"dataGaLocation":1611},{"text":1838,"config":1839},"Cookies",{"dataGaName":1651,"dataGaLocation":1611,"id":1652,"isOneTrustButton":139},{"text":1841,"config":1842},"Privacy",{"href":1646,"dataGaName":1647,"dataGaLocation":1611},[1844],{"id":1845,"title":7,"body":1137,"config":1846,"content":1848,"description":1137,"extension":113,"meta":1851,"navigation":139,"path":1852,"seo":1853,"stem":1854,"__hash__":1855},"blogAuthors/en-us/blog/authors/jason-yavorska.yml",{"template":1847},"BlogAuthor",{"name":7,"config":1849},{"headshot":114,"ctfId":1850},"jyavorska",{},"/en-us/blog/authors/jason-yavorska",{},"en-us/blog/authors/jason-yavorska","eFtNS4VsB5vvAsfbNZ0pGZ1cC600ZgmmRzLEDxetiGk",[1857,1865,1873],{"title":1858,"description":1859,"heroImage":1860,"category":1133,"date":1861,"authors":1862,"slug":1864,"externalUrl":1137},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1863],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1866,"description":1867,"heroImage":1868,"category":1133,"date":1869,"authors":1870,"slug":1872,"externalUrl":1137},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1871],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1874,"description":1875,"heroImage":1876,"category":1133,"date":1877,"authors":1878,"slug":1880,"externalUrl":1137},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1879],"Isa Huerga","co-create-h1-2026",{"header":1882,"text":1883,"button":1887,"disclaimer":1890},"Start your free\n\n30-day GitLab trial\n",[1884,1885,1886],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1160,"config":1888},{"href":1889,"dataGaName":1163,"dataGaLocation":1402},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1892,"blurb":1893,"button":1894,"secondaryButton":1899},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1895,"config":1896},"Get your free trial",{"href":1897,"dataGaName":1163,"dataGaLocation":1898},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1627,"config":1900},{"href":1495,"dataGaName":1168,"dataGaLocation":1898},1794911783813]