-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
58 lines (47 loc) · 1.92 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
# Only build non-pushes (so PRs, API requests & cron jobs) OR tags OR forks OR main branch builds
# https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
if: type != push OR tag IS present OR fork = true OR branch IN (master)
jdk:
- openjdk8
env:
- SCALA_VERSION=2.11 LAGOM_VERSION=1.4.15 PLAY_VERSION=2.6.10
- SCALA_VERSION=2.12 LAGOM_VERSION=1.5.5 PLAY_VERSION=2.7.4
- SCALA_VERSION=2.13 LAGOM_VERSION=1.6.4 PLAY_VERSION=2.8.3
matrix:
fast_finish: true
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install: skip
script:
- ./gradlew clean check -PscalaBinaryVersion=$SCALA_VERSION -PlagomVersion=$LAGOM_VERSION -PplayVersion=$PLAY_VERSION
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- echo $GPG_SECRET_KEYS | base64 --decode > $HOME/.gnupg/taymyr.gpg
deploy:
# Deploy releases
- provider: script
script: ./gradlew publishToSonatype closeAndReleaseRepository -x test -Psigning.keyId=$GPG_KEY_NAME -Psigning.password="$GPG_PASSPHRASE" -Psigning.secretKeyRingFile=$HOME/.gnupg/taymyr.gpg -PossrhUsername=$OSS_USERNAME -PossrhPassword="$OSS_PASSWORD" -PscalaBinaryVersion=$SCALA_VERSION -PlagomVersion=$LAGOM_VERSION -PplayVersion=$PLAY_VERSION
skip_cleanup: true
on:
tags: true
# Deploy snapshots
- provider: script
script: ./gradlew publishToSonatype -x test -x sign -PossrhUsername=$OSS_USERNAME -PossrhPassword="$OSS_PASSWORD" -PscalaBinaryVersion=$SCALA_VERSION -PlagomVersion=$LAGOM_VERSION -PplayVersion=$PLAY_VERSION
skip_cleanup: true
on:
branch: master
notifications:
webhooks:
urls:
- "https://webhooks.gitter.im/e/9e04688b0ae124f5a047"
- "https://webhooks.gitter.im/e/869b1a645dc46645e619"
on_success: change
on_failure: always
on_start: never