Skip to content

Commit

Permalink
[#54] Switch to releasing with CDeliveryBoy
Browse files Browse the repository at this point in the history
  • Loading branch information
szpak committed Jun 5, 2017
1 parent 7328104 commit 9a626ea
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
language: groovy

before_install:
- openssl aes-256-cbc -K $encrypted_21cd6bba12a0_key -iv $encrypted_21cd6bba12a0_iv
-in gradle/gpg-key.asc.enc -d | gpg --fast-import
# Environment variables cannot have "." and it's problematic to pass them with "ORG_GRADLE_PROJECT_"
# In addition GRADLE_OPTS doesn't seem to be passed to Gradle started with Nebula
# In addition GRADLE_OPTS doesn't seem to be passed to Gradle started with Nebula (for AT/E2E tests)
- mkdir -p ~/.gradle
- echo "signing.keyIdAT=0694F057" >> ~/.gradle/gradle.properties
- echo "signing.secretKeyRingFileAT=$HOME/.gnupg/secring.gpg" >> ~/.gradle/gradle.properties
- echo "signing.passwordAT=" >> ~/.gradle/gradle.properties
# regular releasing (not AT/E2E)
- "export GRADLE_OPTS='-Dorg.gradle.project.signing.keyId=0694F057 -Dorg.gradle.project.signing.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Dorg.gradle.project.signing.password= -Dorg.gradle.project.gradle.publish.key=$PLUGIN_PORTAL_API_KEY -Dorg.gradle.project.gradle.publish.secret=$PLUGIN_PORTAL_API_SECRET'"
- "export TRAVIS_COMMIT_MSG=$(git log --format=%B -n 1 $TRAVIS_COMMIT)"
- git config user.email "[email protected]"
- git config user.name "Codearte Continuous Delivery Bot"

install:
- ./gradlew assemble -s

script:
- ./gradlew check funcTest -Pcompatibility -s -i --continue
- ./gradlew prepareForCiBuild -s -i -Prelease.disableChecks && ./gradlew funcTest ciBuild -s -i -Pcompatibility -Prelease.disableChecks

language: groovy
jdk:
- oraclejdk8
env:
global:
- secure: g95pWjS+RIusyf6t26YnH/HhL6j7aQb3nUpiF0i+9eumn1sT2g8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l/KheyNge0n6eMKBg/cppMCKK5c6firEvnU0G1NlzMZ06KllJmU3kM+UF9FD7Aw0sKU5w715FB+GqlgX8T/cpHkUSo4D8ELT4Qlj5fv475n7ajDSs1b4=
- secure: WbKPmXCd0N3wiwFspIYJhqRp3jagVt0w7lFSUIlnzhN3crt1IubtydgqhhcFYsLb2/iNwibU7mO8cwOYuoi1+SKuEdogAP05ndV81qq93HV8P3zESV75BnG7U1AVBaZjFdi+kYNhSALdWUmbZjcdogINgJMmezbqdL+tPOXEKaA=
matrix:
include:
- jdk: oraclejdk7
env: NEXUS_AT_ENABLE_E2E_TESTS=true
- jdk: oraclejdk8
env: SKIP_RELEASE=true
27 changes: 15 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,41 @@ buildscript {
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
url 'https://plugins.gradle.org/m2/' //for plugin-publish-plugin
}
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'pl.allegro.tech.build:axion-release-plugin:1.5.0'
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.8.0'
classpath 'info.solidsoft.gradle:cdeliveryboy:0.4.0'
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.3.0'
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.7'
classpath 'com.toomuchcoding:uptodate-gradle-plugin:1.0.1'
}
}

apply plugin: 'groovy'
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'io.codearte.nexus-staging'
apply plugin: 'info.solidsoft.cdeliveryboy'
apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'com.toomuchcoding.uptodate'

scmVersion {
tag {
prefix = 'release'
versionSeparator = '/'
cDeliveryBoy {
git {
releaseBranch = "devel"
}
tasks {
promoteRepositoryTask = "releaseRepository"
}
nexus {
autoPromote = false
}
}

scmVersion {
versionIncrementer 'incrementMinor'
hooks {
pre 'fileUpdate', [file : 'README.md', pattern: { v, p -> /"io\.codearte\.gradle\.nexus:gradle-nexus-staging-plugin:.*"/ },
replacement: { v, p -> "\"io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$v\"" }]
pre 'fileUpdate', [file : 'README.md', pattern: { v, p -> /id\ 'io\.codearte\.nexus-staging'\ version\ '.*'/ },
replacement: { v, p -> "id 'io.codearte.nexus-staging' version '$v'" }]
pre 'commit', { version, position -> "Release version: ${version}\n\n[ci skip]" }
}
}

Expand Down

0 comments on commit 9a626ea

Please sign in to comment.