File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed
Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 11language : java
22jdk :
33 - oraclejdk8
4-
4+
55env :
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
1013script :
1114 - gradle check verifyPlugin
1215
1316after_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
Original file line number Diff line number Diff line change @@ -68,12 +68,17 @@ idea {
6868apply plugin : ' org.jetbrains.intellij'
6969intellij {
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
7883test {
7984 jacoco {
@@ -99,7 +104,7 @@ import org.jetbrains.grammarkit.tasks.GenerateParser
99104
100105task 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
You can’t perform that action at this time.
0 commit comments