Development

Adding travis build passing icon in your github

건이두 2018. 12. 2. 20:51
728x90

Overview

it explain how to add travis build passing icon in your github, especially, regarding android app project

My '.travis.yml'

Before I explain anything, let me share my .travis.yml

language: android


android:

  components:

    - tools

    - platform-tools

    - build-tools-26.0.2

    - build-tools-27.0.3

    - android-24

  licenses:

    - 'android-sdk-license-.+'

    - '.+'


before_install:

  - chmod +x gradlew

  - yes | sdkmanager "platforms;android-24"


Adding travis build passing icon in rmd

:-) like this 


Adding the line below, in the top of your rmd file.


[![Build Status](https://travis-ci.org/skysign/MediaSyncExample.svg?branch=master)](https://travis-ci.org/skysign/MediaSyncExample) 


Please visit, if you want to see working example :)

https://github.com/skysign/MediaSyncExample

Trouble shooting

You have not accepted the license agreements of the following SDK components:

[Android SDK Build-Tools 26.0.2]

You must add the line for build-tools-26.0.2 below, to avoid build error due to Android SDK Build-Tools 26.0.2, even you didn't describe anything regarding build-tools-26.0.2.
if you are using build-tools-27.0.3, build-tools-26.0.2 is installed automatically, and it cause build break due to that license is not accepted.

android:

  components:

    - tools

    - platform-tools

    - build-tools-26.0.2 <- MUST ADD

    - build-tools-27.0.3




728x90