Skip to content

Commit c82d28b

Browse files
Automatic artifact upload upon successful Travis build (ClearVolume#10)
* Updated Travis config with secrets for Maven repository upoad * Update gradle build file with Maven uploadArchives task
1 parent 1f07b61 commit c82d28b

File tree

2 files changed

+31
-11
lines changed

2 files changed

+31
-11
lines changed

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
language: java
2+
3+
env:
4+
global:
5+
- secure: "xhpbLZhcuxAXKezhw6aKvNoBUsSy4R3wIGSJdb36iD5SayvetHR6nFjly544arxmFqTsVrv0D2KyzpmSUEVDzeh0BED7T8S2LUopMt/n4aykxN+4F4jJAEZuuY00jfdxdrWCB/GsI3taOOTgTiLZIo3B3DMD8DJgZdfWFrvsn4Q="
6+
- secure: "dLqjHRNgn3iBDBhXknPOQa9CUfvQai4vMNx5U3mEuGMpORcQNFgaq1HPquOXsmLhfU7b6tsNp9sBZxdCaI9475dvEMrWi8qrh5/DSUdukdLa+uWmRDG8WxFdLNpvjrwFYeqCbPqTpZQAxfg6KhP4WTLlmsAeO5nT6EGeBRg9IWk="
7+
28
script: "gradle build"
9+
310
jdk:
411
- oraclejdk8
12+
513
install: gradle assemble --stacktrace
14+
15+
before_cache:
16+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
17+
18+
cache:
19+
directories:
20+
- $HOME/.gradle/caches/
21+
- $HOME/.gradle/wrapper/
22+
23+
after_success:
24+
- gradle uploadArchives -Plocal=true

build.gradle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,15 @@ if(hasProperty('bintray_user') && hasProperty('bintray_key') )
213213
}
214214
}
215215

216-
217-
218-
219-
220-
221-
222-
223-
224-
225-
226-
216+
uploadArchives {
217+
repositories {
218+
mavenDeployer {
219+
repository(url: "http://maven.imagej.net/content/repositories/releases") {
220+
authentication(userName: "$System.env.CI_DEPLOY_USERNAME", password: "$System.env.CI_DEPLOY_PASSWORD")
221+
}
222+
snapshotRepository(url: "http://maven.imagej.net/content/repositories/snapshots") {
223+
authentication(userName: "$System.env.CI_DEPLOY_USERNAME", password: "$System.env.CI_DEPLOY_PASSWORD")
224+
}
225+
}
226+
}
227+
}

0 commit comments

Comments
 (0)