-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
47 lines (38 loc) · 1.06 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
language: java
dist: trusty
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
script:
- ./gradlew check
- ./gradlew install -x check
- ./gradlew codeCoverageReport --continue
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
- provider: script
script: scripts/deploy.sh
skip_cleanup: true
on:
repo: watson-developer-cloud/spring-boot-starter
jdk: oraclejdk8
tags: true
- provider: releases
api_key: ${GITHUB_TOKEN}
file: build/libs/watson-spring-boot-starter-${TRAVIS_BRANCH:1}-jar-with-dependencies.jar
skip_cleanup: true
on:
repo: watson-developer-cloud/spring-boot-starter
jdk: oraclejdk8
tags: true
notifications:
email: true