Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Added Travis CI and Codecov Support #183

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
language: android
dist: trusty

env:
global:
- ANDROID_TARGET=android-28
- ANDROID_ABI=armeabi-v7a
- CODECOV_TOKEN=52bcf07f-611f-47cc-81f5-e86d77d6fcb7

android:
components:
- android-28
- tools
- platform-tools
- build-tools-28.0.0
- extra-android-m2repository
- extra-android-m2repository
- extra-google-google_play_services
- $ANDROID_TARGET
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}

licenses:
- 'android-sdk-license-.+'

script:
- ./gradlew build jacocoTestReport

before_install:
- chmod +x gradlew
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager --update

after_success:
- bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache


3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.com/sayamss/offix-android.svg?branch=codecov)](https://travis-ci.com/sayamss/offix-android)
[![codecov](https://codecov.io/gh/sayamss/offix-android/branch/codecov/graph/badge.svg)](https://codecov.io/gh/sayamss/offix-android)

<p align="center">
<img width="400" src="https://github.com/aerogear/offix/raw/master/resources/logo.png">
<br/>
Expand Down
12 changes: 12 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

// Jacoco Plugin
apply plugin: 'jacoco-android'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
}
}

android {
compileSdkVersion 28

Expand Down