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

Travis-Codecov Added #178

Open
wants to merge 1 commit 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
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
language: android
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-28
- ANDROID_ABI=armeabi-v7a
- CODECOV_TOKEN=f93aa7c8-1579-4687-870f-cc6e08a93316
android:
components:
- tools
- platform-tools
- build-tools-28.0.0
- android-28
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- $ANDROID_TARGET
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}

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

before_install:
- yes | sdkmanager "platforms;android-28"
- chmod +x ./gradlew
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- yes | sdkmanager --update
- yes | sdkmanager --licenses

script:
- echo "Hello! This is Travis"
- ./gradlew build jacocoTestReport

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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/crowded-geek/offix-android.svg?branch=master)](https://travis-ci.org/crowded-geek/offix-android)
[![codecov](https://codecov.io/gh/crowded-geek/offix-android/branch/master/graph/badge.svg)](https://codecov.io/gh/crowded-geek/offix-android)
<p align="center">
<img width="400" src="https://github.com/aerogear/offix/raw/master/resources/logo.png">
<br/>
Expand Down
2 changes: 2 additions & 0 deletions offix/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apply plugin: 'com.apollographql.android'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'jacoco-android'

buildscript {
repositories {
Expand All @@ -11,6 +12,7 @@ buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
}
}

Expand Down