Skip to content

Commit

Permalink
Fix gradle publkishPlugin task. Add Travis CI pipeline autodeployment…
Browse files Browse the repository at this point in the history
… on tag creation.
  • Loading branch information
daggerok committed Sep 22, 2018
1 parent a7374a5 commit 50e1a1f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
env:
- TERM=dumb

matrix:
- TERM=dumb
global:
- secure: o7bQffEMsStS0X7oWJ/i7QWeHoZTqQASLYx0PsfROyTCwVaNnSjuj5jsEIpO2wSppOSVD+tu6LOiCG06XvwWFA79hZh0DzPPq1nbVof4PhScNljYegCG7X6Nihrn38HOj9oxIZ6CJEZPaeyg1OzAPGs0Kir/MDiCcV3W9NDMwHo=
- secure: VHuocNAOIkVh/TcDnTkXQSNBQtstJsCnfsiry4ROk4NCU3TkwkS1VLakhsErwEI1Ri5rl8jSOsYtOUBDfRiJq6nHEg7ilVERz9BVDhTmri6QlQv46OunBDWUrsqJjB1Q6AsEPBl0L1dqTe2RrP3AvmCXglfeFZKoEbWlmDpGSWE=
language: groovy
jdk: oraclejdk8

before_cache:
- bash -c 'for lockFile in $(find ~/.gradle -name "*.lock"); do sudo rm -rf $lockFile ; done'

- bash -c 'for lockFile in $(find ~/.gradle -name "*.lock"); do sudo rm -rf $lockFile
; done'
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.docker

- "$HOME/.m2"
- "$HOME/.gradle"
- "$HOME/.docker"
addons:
apt:
update: true
packages:
- bash

install: true
script: bash gradlew clean build

after_success: bash gradlew jacocoTestReport coveralls
after_failure: bash gradlew clean check --debug
after_success:
- bash gradlew jacocoTestReport coveralls
# publishing plugin
- test -n "$TRAVIS_TAG" && echo "gradle.publish.key=${GRADLE_PUBLISH_KEY}" >> ~/.gradle/gradle.properties
- test -n "$TRAVIS_TAG" && echo "gradle.publish.secret=${GRADLE_PUBLISH_SECRET}" >> ~/.gradle/gradle.properties
- test -n "$TRAVIS_TAG" && ./gradlew publishPlugin -i
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jgoodiesLooksVersion = '2.2.0'
gradleApiVersion = 2.12
projectUrl = 'https://github.com/byte-shifter-ltd/soapui-gradle-plugin'
description = 'Gradle plugin for running SoapUI test projects using testrunner'
pluginDescription = 'Gradle plugin for running SoapUI test projects using testrunner'
}
apply from: "$rootDir/gradle/repositories.gradle"
}
Expand All @@ -16,8 +16,9 @@ plugins {
id 'groovy'
id 'jacoco'
id 'codenarc'
id 'maven-publish'
id 'com.github.kt3k.coveralls' version '2.8.1'
id 'com.gradle.plugin-publish' version '0.9.7'
id 'com.gradle.plugin-publish' version '0.10.0'
id 'com.github.hierynomus.license' version '0.14.0'
}

Expand Down
11 changes: 6 additions & 5 deletions gradle/pluginPortal.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
group = 'io.byteshifter'
version = "${soapUIVersion}.PRO-SNAPSHOT"
description = project.pluginDescription
group = 'io.byteshifter'

pluginBundle {
website = "$project.projectUrl"
website = project.projectUrl
vcsUrl = "${project.projectUrl}.git"
description = project.description
description = project.pluginDescription
tags = [
'soapui',
'testing',
'soap',
'rest',
'testrunner',
]

plugins {
soapuiPlugin {
id = "${group}.soapui"
description = displayName = project.description
description = project.pluginDescription
displayName = project.pluginDescription
}
}
}

0 comments on commit 50e1a1f

Please sign in to comment.