-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: java
jdk:
- oraclejdk8
sudo: false
env:
matrix:
- IDEA_VERSION=IC-14.0.4
- IDEA_VERSION=IC-14.1.6
- IDEA_VERSION=IC-15.0.2
- IDEA_VERSION=IC-2016.1
- IDEA_VERSION=IC-2016.2.4
- IDEA_VERSION=LATEST-EAP-SNAPSHOT
global:
- secure: GJxFEsmA6nJDtD45okB20WgXlfCY/Zaw90aOXxBAWb3w/7eeIFrolXev4ve+gxDettCArqcsPo53vpyimjFzRI8IZB+MZRnpPEVx3Ux/5eEBf2jMqsoaxmWk5rnKp3DTXjMlaAPSnUJRhrPboxdireQG2mIMa34QGv8tCcM2aLk=
notifications:
email: false
branches:
only:
- master
- develop
before_script:
- if [ $TRAVIS_BRANCH == 'develop' ]; then export PLUGIN_CHANNEL=nightly; fi
script:
- ./gradlew buildPlugin -PideaVersion=$IDEA_VERSION
after_success:
- curl -Lo travis_after_all.py https://raw.github.com/winterDroid/travis_after_all/master/travis_after_all.py
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- if [[ $BUILD_LEADER = YES && "$BUILD_AGGREGATE_STATUS" = "others_succeeded" && $TRAVIS_PULL_REQUEST = 'false' ]]; then ./gradlew publishPlugin; fi
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS