Skip to content

Commit ec1885c

Browse files
ex3m1024neueda-robot-riga
authored andcommitted
Travis publish support (#102)
* release instructions updated * harness/DB versions upgraded, added 3.4 and 3.5 * Use env from Travis, release-publish script (WIP) * travis script fixes * temporarily publish to 'experimental' * stacktrace for gradle clean test * gradle caching * debug Gradle errors * debug Gradle errors (info) * repo lock * ram stats * ram stats (2) * Java memory optimization
1 parent 8682ebb commit ec1885c

File tree

12 files changed

+113
-43
lines changed

12 files changed

+113
-43
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@ sudo: false
22
language: java
33
jdk:
44
- oraclejdk8
5+
before_cache:
6+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
7+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
8+
cache:
9+
directories:
10+
- $HOME/.gradle/caches/
11+
- $HOME/.gradle/wrapper/
12+
deploy:
13+
provider: script
14+
script: bash release-and-publish.sh
15+
on:
16+
repo: neueda/jetbrains-plugin-graph-database-support
17+
branch: master
18+
tags: true
19+
script:
20+
- ./gradlew clean test

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ versionNeo4jJavaBoltDriver=1.6.3
1111
versionPrefuse=1.0.0
1212
versionGoogleAnalytics=1.1.2
1313
versionJacksonMapper=2.8.6
14+
15+
# Performance
16+
org.gradle.jvmargs=-Xmx512m

graph-database-support-plugin/build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ intellij {
1212
updateSinceUntilBuild false
1313
sameSinceUntilBuild false
1414

15-
publish {
16-
if (project.hasProperty('intellijUsername')) {
17-
username intellijUsername
18-
}
19-
if (project.hasProperty('intellijPassword')) {
20-
password intellijPassword
21-
}
15+
publishPlugin {
16+
username System.getenv("INTELLIJ_USERNAME")
17+
password System.getenv("INTELLIJ_PASSWORD")
18+
channels 'experimental'
2219
}
2320

2421
if (System.getenv("CI_SERVER") == "yes") {

how-to-release.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Release should be done manually & carefully.
22

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

56
Commands:
67

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

1617
4) Publish plugin to Jetbrains Plugin Registry
17-
./gradlew publishPlugin
18+
Ensure {HOME}/.gradle/gradle.properties file contains intellij credentials
19+
intellijUsername=
20+
intellijPassword=
21+
Execute
22+
./gradlew buildPlugin
23+
./gradlew :graph-database-support-plugin:publishPlugin

release-and-publish.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
if [ "$TRAVIS_SECURE_ENV_VARS" = false ]; then
3+
echo "Will not release and publish, no credentials. Maybe you are trying to publish from a fork?";
4+
exit 0;
5+
fi
6+
./gradlew buildPlugin
7+
./gradlew :graph-database-support-plugin:publishPlugin

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ include 'testing:database:neo4j-3.0'
2525
include 'testing:database:neo4j-3.1'
2626
include 'testing:database:neo4j-3.2'
2727
include 'testing:database:neo4j-3.3'
28+
include 'testing:database:neo4j-3.4'
29+
include 'testing:database:neo4j-3.5'
2830
include 'testing:integration-neo4j'
2931

testing/database/neo4j-3.1/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
dependencies {
6-
compile 'org.neo4j.test:neo4j-harness:3.1.7'
6+
compile 'org.neo4j.test:neo4j-harness:3.1.9'
77
compile project(":testing:database:neo4j-common")
88
}
99

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
plugins {
2-
id 'com.github.johnrengelman.shadow' version '1.2.4'
3-
}
4-
5-
dependencies {
6-
compile 'org.neo4j.test:neo4j-harness:3.2.6'
7-
compile project(":testing:database:neo4j-common")
8-
}
9-
10-
shadowJar {
11-
mergeServiceFiles()
12-
baseName = 'neo4j32-shadow'
13-
classifier = null
14-
version = null
15-
}
16-
17-
jar.finalizedBy(shadowJar)
1+
plugins {
2+
id 'com.github.johnrengelman.shadow' version '1.2.4'
3+
}
4+
5+
dependencies {
6+
compile 'org.neo4j.test:neo4j-harness:3.2.13'
7+
compile project(":testing:database:neo4j-common")
8+
}
9+
10+
shadowJar {
11+
mergeServiceFiles()
12+
baseName = 'neo4j32-shadow'
13+
classifier = null
14+
version = null
15+
}
16+
17+
jar.finalizedBy(shadowJar)
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
plugins {
2-
id 'com.github.johnrengelman.shadow' version '1.2.4'
3-
}
4-
5-
dependencies {
6-
compile 'org.neo4j.test:neo4j-harness:3.3.0'
7-
compile project(":testing:database:neo4j-common")
8-
}
9-
10-
shadowJar {
11-
mergeServiceFiles()
12-
baseName = 'neo4j33-shadow'
13-
classifier = null
14-
version = null
15-
}
16-
17-
jar.finalizedBy(shadowJar)
1+
plugins {
2+
id 'com.github.johnrengelman.shadow' version '1.2.4'
3+
}
4+
5+
dependencies {
6+
compile 'org.neo4j.test:neo4j-harness:3.3.9'
7+
compile project(":testing:database:neo4j-common")
8+
}
9+
10+
shadowJar {
11+
mergeServiceFiles()
12+
baseName = 'neo4j33-shadow'
13+
classifier = null
14+
version = null
15+
}
16+
17+
jar.finalizedBy(shadowJar)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
id 'com.github.johnrengelman.shadow' version '1.2.4'
3+
}
4+
5+
dependencies {
6+
compile 'org.neo4j.test:neo4j-harness:3.4.10'
7+
compile project(":testing:database:neo4j-common")
8+
}
9+
10+
shadowJar {
11+
mergeServiceFiles()
12+
baseName = 'neo4j34-shadow'
13+
classifier = null
14+
version = null
15+
}
16+
17+
jar.finalizedBy(shadowJar)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
plugins {
2+
id 'com.github.johnrengelman.shadow' version '1.2.4'
3+
}
4+
5+
dependencies {
6+
compile 'org.neo4j.test:neo4j-harness:3.5.0'
7+
compile project(":testing:database:neo4j-common")
8+
}
9+
10+
shadowJar {
11+
mergeServiceFiles()
12+
baseName = 'neo4j35-shadow'
13+
classifier = null
14+
version = null
15+
zip64 true
16+
}
17+
18+
jar.finalizedBy(shadowJar)

testing/integration-neo4j/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ test {
1717
systemProperty "neo4j-package-3.1", "${project(":testing:database:neo4j-3.1").projectDir}/build/libs/neo4j31-shadow.jar"
1818
systemProperty "neo4j-package-3.2", "${project(":testing:database:neo4j-3.2").projectDir}/build/libs/neo4j32-shadow.jar"
1919
systemProperty "neo4j-package-3.3", "${project(":testing:database:neo4j-3.3").projectDir}/build/libs/neo4j33-shadow.jar"
20+
systemProperty "neo4j-package-3.4", "${project(":testing:database:neo4j-3.4").projectDir}/build/libs/neo4j34-shadow.jar"
21+
systemProperty "neo4j-package-3.5", "${project(":testing:database:neo4j-3.5").projectDir}/build/libs/neo4j35-shadow.jar"
2022
jvmArgs '-Xms2048m', '-Xmx2048m'
2123
}
2224

2325
test.dependsOn ":testing:database:neo4j-3.0:assemble"
2426
test.dependsOn ":testing:database:neo4j-3.1:assemble"
2527
test.dependsOn ":testing:database:neo4j-3.2:assemble"
2628
test.dependsOn ":testing:database:neo4j-3.3:assemble"
29+
test.dependsOn ":testing:database:neo4j-3.4:assemble"
30+
test.dependsOn ":testing:database:neo4j-3.5:assemble"

0 commit comments

Comments
 (0)