forked from watson-developer-cloud/java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
64 lines (59 loc) · 1.56 KB
/
.travis.yml
File metadata and controls
64 lines (59 loc) · 1.56 KB
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
59
60
61
62
63
64
dist: trusty
os: linux
branches:
except:
- gh-pages
stages:
- Build and test
- Semantic release
- Publish javadoc
- Release to bintray
jobs:
include:
- stage: Build and test
jdk: oraclejdk8
language: java
before_install:
- .utility/decrypt-service-instance-apikeys.sh
script:
- ./gradlew checkstyleMain
- ./gradlew checkstyleTest
- travis_retry .utility/travis-run-tests.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- jdk: openjdk7
language: java
before_install:
- .utility/patch-openjdk7.sh
- .utility/decrypt-service-instance-apikeys.sh
script:
- travis_retry .utility/travis-run-tests.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: Semantic release
jdk: openjdk7
language: java
if: branch = master AND type = push AND fork = false
before_install:
- pip install --user bumpversion
- nvm install 12
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
script:
- npx semantic-release
- stage: Publish javadoc
jdk: openjdk7
language: java
if: type = push AND fork = false
script:
- ./gradlew docs
- .utility/push-javadoc-to-gh-pages.sh
- stage: Release to bintray
jdk: openjdk7
language: java
if: tag IS present
script:
- .utility/deploy-travis-wrapper.sh
notifications:
email: true