forked from intellij-dlanguage/intellij-dlanguage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.45 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: java
jdk: oraclejdk8
dist: trusty
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_install:
- sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
- wget -qO - https://dlang.org/d-keyring.gpg | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq --force-yes dmd-bin dub
env:
global:
- ORG_GRADLE_PROJECT_downloadIdeaSources=false
jobs:
include:
- stage: Build and Test
env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-TRUNK-SNAPSHOT
- env: ORG_GRADLE_PROJECT_ideaVersion=2018.1.2
- env: ORG_GRADLE_PROJECT_ideaVersion=2018.1.1
- stage: Test Coverage
script: ./gradlew cobertura coveralls
- stage: Deploy EAP
script: skip
env: ORG_GRADLE_PROJECT_ideaVersion=2018.1
deploy:
provider: script
skip_cleanup: true
script: ORG_GRADLE_PROJECT_publishChannels=eap ORG_GRADLE_PROJECT_version=1.17-eap$TRAVIS_BUILD_NUMBER ./gradlew :publishPlugin
on:
branch: develop
- stage: Deploy new Release
script: skip
env: ORG_GRADLE_PROJECT_ideaVersion=2018.1
deploy:
provider: script
skip_cleanup: true
script: ./gradlew publishPlugin
on:
branch: master
allow_failures:
- env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-TRUNK-SNAPSHOT