Skip to content

Commit e1a9e94

Browse files
committed
[FEATURE] auto deploy build from Staging/Stable branch
1 parent 0f71382 commit e1a9e94

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
language: java
22
jdk:
33
- oraclejdk8
4-
4+
55
env:
6-
- IDEA_VERSION=IC-2016.3.2 GRAMMAR_KIT_VERSION=1.4.3
7-
- IDEA_VERSION=IC-2017.3.2 GRAMMAR_KIT_VERSION=2017.1.2
8-
- IDEA_VERSION=LATEST-EAP-SNAPSHOT GRAMMAR_KIT_VERSION=2017.1.2
6+
global:
7+
- JI_CHANNELS=$TRAVIS_BRANCH
8+
matrix:
9+
- IDEA_VERSION=IC-2016.3.2 GRAMMAR_KIT_VERSION=1.4.3
10+
- IDEA_VERSION=IC-2017.3.2 GRAMMAR_KIT_VERSION=2017.1.2
11+
- IDEA_VERSION=LATEST-EAP-SNAPSHOT GRAMMAR_KIT_VERSION=2017.1.2
912

1013
script:
1114
- gradle check verifyPlugin
1215

1316
after_success:
1417
- gradle jacocoTestReport coveralls
18+
19+
jobs:
20+
include:
21+
- stage: deploy
22+
env: IDEA_VERSION=IC-2018.1 GRAMMAR_KIT_VERSION=2017.1.2
23+
if: branch IN (Staging, Stable) AND type = push
24+
script: gradle publishPlugin

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,17 @@ idea {
6868
apply plugin: 'org.jetbrains.intellij'
6969
intellij {
7070
// IDE version - https://www.jetbrains.com/intellij-repository/releases
71-
version = System.getenv().getOrDefault('IDEA_VERSION', 'IC-2017.3.5')
71+
version = System.getenv().getOrDefault('IDEA_VERSION', 'IC-2018.1')
7272
pluginName = 'CSV Plugin'
7373
instrumentCode = true
7474
updateSinceUntilBuild = false
7575
downloadSources = false
7676
}
77+
publishPlugin {
78+
username = System.getenv().getOrDefault('JI_USER', '')
79+
password = System.getenv().getOrDefault('JI_PASSWORD', '')
80+
channels = [System.getenv().getOrDefault('JI_CHANNELS', 'Testing')]
81+
}
7782

7883
test {
7984
jacoco {
@@ -99,7 +104,7 @@ import org.jetbrains.grammarkit.tasks.GenerateParser
99104

100105
task generateCsvParser(type: GenerateParser) {
101106
source = 'src/main/java/net/seesharpsoft/intellij/plugins/csv/Csv.bnf'
102-
targetRoot 'gen'
107+
targetRoot = 'gen'
103108
pathToParser = '/net/seesharpsoft/intellij/plugins/csv/parser/CsvParser.java'
104109
pathToPsiRoot = '/net/seesharpsoft/intellij/plugins/csv/psi'
105110
purgeOldFiles = true

0 commit comments

Comments
 (0)