forked from intellij-dlanguage/intellij-dlanguage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.82 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
53
54
55
56
57
58
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/"
## commented out as part of https://github.com/intellij-dlanguage/intellij-dlanguage/issues/490
#before_install:
# - sudo apt-get install -y dpkg
# - sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
# - sudo apt-get update --allow-insecure-repositories && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
# - sudo apt-get update && sudo apt-get install dmd-compiler dub
env:
global:
- ORG_GRADLE_PROJECT_downloadIdeaSources=false
jobs:
include:
- stage: Build and Test
env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT
- env: ORG_GRADLE_PROJECT_ideaVersion=2019.2.4
- env: ORG_GRADLE_PROJECT_ideaVersion=2019.2.3
- env: ORG_GRADLE_PROJECT_ideaVersion=2019.2.2
- env: ORG_GRADLE_PROJECT_ideaVersion=2019.2
# - stage: Test Coverage
# if: NOT (branch = master)
# script: ./gradlew cobertura coveralls
# - stage: Deploy EAP
# if: branch = develop
# script: skip
# env: ORG_GRADLE_PROJECT_ideaVersion=2019.1
# deploy:
# provider: script
# skip_cleanup: true
# script: ORG_GRADLE_PROJECT_publishChannels=eap ORG_GRADLE_PROJECT_version=1.19.1-eap$TRAVIS_BUILD_NUMBER ./gradlew :publishPlugin
# on:
# branch: develop
- stage: Deploy new Release
if: branch = master
script: skip
#env: ORG_GRADLE_PROJECT_ideaVersion=2018.3
deploy:
provider: script
skip_cleanup: true
script: ./gradlew publishPlugin
on:
branch: master
allow_failures:
- env: ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT