<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abu Ruqaiyah on Medium]]></title>
        <description><![CDATA[Stories by Abu Ruqaiyah on Medium]]></description>
        <link>https://medium.com/@nickn.abdullah?source=rss-323a769dbd5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*l22grTZuN91sa5L5.</url>
            <title>Stories by Abu Ruqaiyah on Medium</title>
            <link>https://medium.com/@nickn.abdullah?source=rss-323a769dbd5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:47:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nickn.abdullah/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quick CircleCI setup for Android]]></title>
            <link>https://medium.com/@nickn.abdullah/quick-circleci-setup-for-android-5970818598ae?source=rss-323a769dbd5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5970818598ae</guid>
            <category><![CDATA[circleci]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Abu Ruqaiyah]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 12:35:09 GMT</pubDate>
            <atom:updated>2018-06-27T14:12:48.397Z</atom:updated>
            <content:encoded><![CDATA[<p>We are going to use CircleCI to automate our android project build, whenever we push any changes.</p><p>To follow this, we should already have…</p><ul><li>A GitHub or Bitbucket account</li><li>An android project we’re developing that is hosted in a remote repo</li><li>New to CircleCI :-)</li></ul><p>We’ll be showing how to add the <strong><em>config.yml</em></strong> file first, then setting up account in CircleCI and linking that to our version control.</p><h4><strong>1. Setting up Config.yml for android project</strong></h4><p>The <em>Config.yml</em> file is at the heart of any CircleCI build.</p><p>The CircleCI website has very good documentation on how to setup the build for any platform.</p><p>But to find the relevant portion for Android, we need to look deeper.</p><p>Go to <strong><em>Developers</em></strong> &gt; <strong><em>Hello World</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shNIR5ygSWQxR0HSuhNQRQ.png" /></figure><p>In the <strong><em>Hello World</em></strong> page &gt; Click on the <strong><em>Tutorials &amp; Sample Apps</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fynI3gYIOnoSsAfUHwvKA.png" /></figure><p>Scroll down to <strong><em>Tutorials</em></strong> &gt; click <strong><em>Android Project Tutorial</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GpVdW0X_jKd7R8QhLcKxLA.png" /></figure><p>In this page, a sample <strong><em>config.yml</em></strong> content for an android project is shown, with brief explanation of some of the commands.</p><p>For our quick-start, we can copy the content as-is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*fp71AishV9dVl9xczDboPw.png" /></figure><p>It’s better to uncomment the lines to handle Gradle permission:</p><pre>- <strong>run:<br>   name: </strong>Chmod permissions <em>#if permission for Gradlew Dependencies fail, use this.<br>   </em><strong>command: </strong>sudo chmod +x ./gradlew</pre><h4>2. Adding Config.yml file to our android project</h4><p>In Android Studio, we open our project HelloWorld.</p><p>Add a directory in the root named <strong><em>.circleci</em>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMIdaX7ke8JCyzmyVyuUAg.png" /></figure><p>Add a file named <strong><em>config.yml</em></strong> inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNON8U04Qb2A9AcUGmVhQ.png" /></figure><p>Copy the sample script above, and paste it to <strong><em>config.yml</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eF8sPAN6nVnKoOG-7Bfgyg.png" /></figure><p>Commit and push the newly added file to our remote repo.</p><h4>3. Creating an account in CircleCI.com</h4><p>Go to CircleCI.com &gt; Sign up &gt; Sign up with GitHub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vo-slVL0XrLL99VG6bWChA.png" /></figure><p>Enter your Github credentials, and then click on <strong>Authorize circleci</strong> to let it access your Github account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*uUS8NIYJdK0VYfwe5YFa6w.png" /></figure><h4><strong>4. Adding our project for build</strong></h4><p>As you can see our account is added.</p><p>Now go ahead and click on <strong>Add Projects</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zfpx7sFGCh0-9dFoxKC50Q.png" /></figure><p>Our project <strong>HelloWorld</strong> is already listed (and any other projects we may have).</p><p>Click on <strong>Set up Project</strong> beside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8DWINlWNSPmHFK-YZnAsw.png" /></figure><p>In the next page, you’ll see the steps to add a sample config.yml file.</p><p>But the language list here doesn’t have android specific sample.</p><p>Although there is <strong>Gradle(java)</strong> but it’s not for android.</p><p>So we added the <strong><em>config.yml</em></strong> in <strong>Steps 1</strong> and <strong>2</strong> above!</p><p>Now all we have to do is press <strong>Start building</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mdf1eOiNB7C54cq3olxlsw.png" /></figure><p>As soon as you press <strong>Start building</strong>, it will start the build and show the details in a new page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SoYAVjCYnRN7rK667CsXAA.png" /></figure><p>Once done, it will show success or fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmZOWYmL8Ot4aF_QiqEOCQ.png" /></figure><p>You can view list of builds from the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fYO1OZ17JWpoiOlYQIir2g.png" /></figure><p>If you go to your commit list in your Github account, you will see the commit that has passed the build, marked with a check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pABMEWfZkDGw8eqQiBCi4g.png" /></figure><h4>(Extra) Code analysis reports</h4><p>In the CircleCI build status page &gt; <strong>Artifacts</strong> tab, you can see report for any analysis tools run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWTSEuxggI3I4GdrTdSGRg.png" /></figure><p>In this case, since the command in <strong><em>config.yml</em></strong> was</p><pre>- <strong>run:<br>    name: </strong>Run Tests<br>    <strong>command: </strong>./gradlew lint test</pre><p>Lint test report will be shown.</p><p>If you want to add more tests, like Findbugs, PMD, etc. you have to add the commands in the <strong><em>config.yml</em></strong> file, like this:</p><pre>- <strong>run:<br>    name: </strong>Run Lint<br>    <strong>command: </strong>./gradlew lint<br>- <strong>run:<br>    name: </strong>Run FindBugs<br>    <strong>command: </strong>./gradlew findbugs<br>- <strong>run:<br>    name: </strong>Run PMD<br>    <strong>command: </strong>./gradlew pmd</pre><p>First, you have to configure your android gradle for those tools.</p><p>Here’s a good reference:</p><p><a href="https://proandroiddev.com/configuring-android-project-static-code-analysis-tools-b6dd83282921">Configuring Android Project — Static Code Analysis Tools</a></p><p>The path for report generation must match the path mentioned in <strong>config.yml, </strong>i.e.</p><pre>- <strong>store_artifacts:<br>    path: </strong>app/build/reports</pre><p>That’s all for a quick setup in CircleCI.</p><p>Feel free to review the many settings to tweak for customizing builds.</p><p>The process is similar with <strong>Bitbucket</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5970818598ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>