Skip to content

Commit

Permalink
Fix travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe24 committed Sep 22, 2014
1 parent 79ef4e4 commit 668414b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 106 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ branches:
# send coverage data
after_success:
- mvn clean test jacoco:report coveralls:jacoco

before_script:
- mv build.gradle build.gradle.deploy
- mv build.gradle.travis build.gradle
after_script:
- mv build.gradle build.gradle.travis
- mv build.gradle.deploy build.gradle
57 changes: 0 additions & 57 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'eclipse'

def dontDeploy = System.getenv("DONT_DEPLOY") ?: ""
if ( dontDeploy.length() == 0 ) {
apply plugin: 'maven'
apply plugin: 'signing'
}

sourceCompatibility = 1.7

group = 'org.beyene'
Expand Down Expand Up @@ -52,55 +46,4 @@ tasks.withType(JavaCompile) {

artifacts {
archives sourcesJar, javadocJar
}

if ( dontDeploy.length() == 0 ) {

signing {
sign configurations.archives
}

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}

pom.project {
name 'org.beyene:sius'
packaging 'jar'
artifactId 'sius'
description 'S.I. Unit System Conversion Library'
url 'https://github.com/mbe24/sius'

scm {
connection 'scm:[email protected]:mbe24/sius.git'
developerConnection 'scm:[email protected]:mbe24/sius.git'
url 'https://github.com/mbe24/sius'
}

licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

developers {
developer {
id 'mbeyene'
name 'Mikael Beyene'
email '[email protected]'
}
}
}
}
}
}
49 changes: 0 additions & 49 deletions build.gradle.travis

This file was deleted.

0 comments on commit 668414b

Please sign in to comment.