Last active
August 29, 2015 14:00
-
-
Save menny/1771d9f5cef7cedaecc8 to your computer and use it in GitHub Desktop.
Shippable for _Android_ Projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+' | |
} | |
} | |
allprojects { | |
repositories { | |
mavenCentral() | |
} | |
} | |
apply plugin: 'android-sdk-manager' | |
apply plugin: 'android' | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.3" | |
defaultConfig { | |
minSdkVersion 16 | |
targetSdkVersion 19 | |
versionCode 1 | |
versionName "1.0" | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_7 | |
targetCompatibility JavaVersion.VERSION_1_7 | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
} | |
} | |
} | |
dependencies { | |
repositories { | |
mavenCentral() | |
} | |
compile 'com.android.support:support-v4:19.+' | |
compile 'com.android.support:appcompat-v7:19.+' | |
compile 'com.android.support:support-annotations:+' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: | |
- oraclejdk7 | |
install: | |
- sudo apt-get install -u lib32stdc++6 lib32z1 | |
- ./gradlew clean assemble | |
before_script: | |
- mkdir -p shippable/testresults | |
script: | |
- ./gradlew check | |
after_script: | |
- cp -r build/test-results/* shippable/testresults/ | |
notifications: | |
email: | |
recipients: | |
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.9.+' | |
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+' | |
} | |
} | |
allprojects { | |
repositories { | |
mavenCentral() | |
} | |
} | |
apply plugin: 'android-sdk-manager' | |
apply plugin: 'android' | |
apply plugin: 'android-test' | |
android { | |
packagingOptions { | |
exclude 'LICENSE.txt' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/LICENSE.txt' | |
exclude 'META-INF/NOTICE' | |
} | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.3" | |
defaultConfig { | |
minSdkVersion 16 | |
targetSdkVersion 19 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_7 | |
targetCompatibility JavaVersion.VERSION_1_7 | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
} | |
} | |
sourceSets { | |
main { | |
manifest.srcFile 'AndroidManifest.xml' | |
res.srcDirs = ['res'] | |
} | |
androidTest { | |
setRoot('src/test') | |
} | |
} | |
} | |
androidTest { | |
include '**/*Test.class' | |
exclude '**/espresso/**/*.class' | |
} | |
dependencies { | |
repositories { | |
mavenCentral() | |
maven { | |
url 'https://oss.sonatype.org/content/repositories/snapshots/' | |
} | |
} | |
compile 'com.android.support:support-v4:19.+' | |
compile 'com.android.support:appcompat-v7:19.+' | |
compile 'com.android.support:support-annotations:+' | |
compile 'com.google.code.gson:gson:2.2.+' | |
androidTestCompile 'junit:junit:4.11' | |
androidTestCompile('org.robolectric:robolectric:2.3-SNAPSHOT') { | |
exclude module: 'classworlds' | |
exclude module: 'maven-artifact' | |
exclude module: 'maven-artifact-manager' | |
exclude module: 'maven-error-diagnostics' | |
exclude module: 'maven-model' | |
exclude module: 'maven-plugin-registry' | |
exclude module: 'maven-profile' | |
exclude module: 'maven-project' | |
exclude module: 'maven-settings' | |
exclude module: 'nekohtml' | |
exclude module: 'plexus-container-default' | |
exclude module: 'plexus-interpolation' | |
exclude module: 'plexus-utils' | |
exclude module: 'wagon-file' | |
exclude module: 'wagon-http-lightweight' | |
exclude module: 'wagon-http-shared' | |
exclude module: 'wagon-provider-api' | |
} | |
androidTestCompile 'org.mockito:mockito-core:1.9.5' | |
androidTestCompile 'com.squareup:fest-android:1.0.+' | |
} | |
apply plugin: 'idea' | |
idea { | |
module { | |
testOutputDir = file('build/test-classes/debug') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is this build.gradle located in the root of the project or in app/mobile?