Skip to content

Travis publish support #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Dec 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,19 @@ sudo: false
language: java
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
deploy:
provider: script
script: bash release-and-publish.sh
on:
repo: neueda/jetbrains-plugin-graph-database-support
branch: master
tags: true
script:
- ./gradlew clean test
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ versionNeo4jJavaBoltDriver=1.6.3
versionPrefuse=1.0.0
versionGoogleAnalytics=1.1.2
versionJacksonMapper=2.8.6

# Performance
org.gradle.jvmargs=-Xmx512m
11 changes: 4 additions & 7 deletions graph-database-support-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ intellij {
updateSinceUntilBuild false
sameSinceUntilBuild false

publish {
if (project.hasProperty('intellijUsername')) {
username intellijUsername
}
if (project.hasProperty('intellijPassword')) {
password intellijPassword
}
publishPlugin {
username System.getenv("INTELLIJ_USERNAME")
password System.getenv("INTELLIJ_PASSWORD")
channels 'experimental'
}

if (System.getenv("CI_SERVER") == "yes") {
Expand Down
8 changes: 7 additions & 1 deletion how-to-release.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Release should be done manually & carefully.

Be sure to check that plugin works before releasing!
To be executed straight on neueda/jetbrains-plugin-graph-database-support repository master branch.

Commands:

Expand All @@ -14,4 +15,9 @@ git checkout <new-release-tag>
./gradlew clean

4) Publish plugin to Jetbrains Plugin Registry
./gradlew publishPlugin
Ensure {HOME}/.gradle/gradle.properties file contains intellij credentials
intellijUsername=
intellijPassword=
Execute
./gradlew buildPlugin
./gradlew :graph-database-support-plugin:publishPlugin
7 changes: 7 additions & 0 deletions release-and-publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
if [ "$TRAVIS_SECURE_ENV_VARS" = false ]; then
echo "Will not release and publish, no credentials. Maybe you are trying to publish from a fork?";
exit 0;
fi
./gradlew buildPlugin
./gradlew :graph-database-support-plugin:publishPlugin
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ include 'testing:database:neo4j-3.0'
include 'testing:database:neo4j-3.1'
include 'testing:database:neo4j-3.2'
include 'testing:database:neo4j-3.3'
include 'testing:database:neo4j-3.4'
include 'testing:database:neo4j-3.5'
include 'testing:integration-neo4j'

2 changes: 1 addition & 1 deletion testing/database/neo4j-3.1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

dependencies {
compile 'org.neo4j.test:neo4j-harness:3.1.7'
compile 'org.neo4j.test:neo4j-harness:3.1.9'
compile project(":testing:database:neo4j-common")
}

Expand Down
34 changes: 17 additions & 17 deletions testing/database/neo4j-3.2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
dependencies {
compile 'org.neo4j.test:neo4j-harness:3.2.6'
compile project(":testing:database:neo4j-common")
}
shadowJar {
mergeServiceFiles()
baseName = 'neo4j32-shadow'
classifier = null
version = null
}
jar.finalizedBy(shadowJar)
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}

dependencies {
compile 'org.neo4j.test:neo4j-harness:3.2.13'
compile project(":testing:database:neo4j-common")
}

shadowJar {
mergeServiceFiles()
baseName = 'neo4j32-shadow'
classifier = null
version = null
}

jar.finalizedBy(shadowJar)
34 changes: 17 additions & 17 deletions testing/database/neo4j-3.3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
dependencies {
compile 'org.neo4j.test:neo4j-harness:3.3.0'
compile project(":testing:database:neo4j-common")
}
shadowJar {
mergeServiceFiles()
baseName = 'neo4j33-shadow'
classifier = null
version = null
}
jar.finalizedBy(shadowJar)
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}

dependencies {
compile 'org.neo4j.test:neo4j-harness:3.3.9'
compile project(":testing:database:neo4j-common")
}

shadowJar {
mergeServiceFiles()
baseName = 'neo4j33-shadow'
classifier = null
version = null
}

jar.finalizedBy(shadowJar)
17 changes: 17 additions & 0 deletions testing/database/neo4j-3.4/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}

dependencies {
compile 'org.neo4j.test:neo4j-harness:3.4.10'
compile project(":testing:database:neo4j-common")
}

shadowJar {
mergeServiceFiles()
baseName = 'neo4j34-shadow'
classifier = null
version = null
}

jar.finalizedBy(shadowJar)
18 changes: 18 additions & 0 deletions testing/database/neo4j-3.5/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}

dependencies {
compile 'org.neo4j.test:neo4j-harness:3.5.0'
compile project(":testing:database:neo4j-common")
}

shadowJar {
mergeServiceFiles()
baseName = 'neo4j35-shadow'
classifier = null
version = null
zip64 true
}

jar.finalizedBy(shadowJar)
4 changes: 4 additions & 0 deletions testing/integration-neo4j/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ test {
systemProperty "neo4j-package-3.1", "${project(":testing:database:neo4j-3.1").projectDir}/build/libs/neo4j31-shadow.jar"
systemProperty "neo4j-package-3.2", "${project(":testing:database:neo4j-3.2").projectDir}/build/libs/neo4j32-shadow.jar"
systemProperty "neo4j-package-3.3", "${project(":testing:database:neo4j-3.3").projectDir}/build/libs/neo4j33-shadow.jar"
systemProperty "neo4j-package-3.4", "${project(":testing:database:neo4j-3.4").projectDir}/build/libs/neo4j34-shadow.jar"
systemProperty "neo4j-package-3.5", "${project(":testing:database:neo4j-3.5").projectDir}/build/libs/neo4j35-shadow.jar"
jvmArgs '-Xms2048m', '-Xmx2048m'
}

test.dependsOn ":testing:database:neo4j-3.0:assemble"
test.dependsOn ":testing:database:neo4j-3.1:assemble"
test.dependsOn ":testing:database:neo4j-3.2:assemble"
test.dependsOn ":testing:database:neo4j-3.3:assemble"
test.dependsOn ":testing:database:neo4j-3.4:assemble"
test.dependsOn ":testing:database:neo4j-3.5:assemble"