-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
47 lines (39 loc) · 1.05 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
install: true
jdk:
- openjdk8
stages:
- analyze
- test
- release
jobs:
include:
- stage: analyze
name: "Analyze production code using PMD"
script: ./gradlew clean pmdMain
- stage: analyze
name: "Analyze production code using Findbugs"
script: ./gradlew clean findbugsMain
- stage: analyze
name: "Analyze code style using checkstyle"
script: ./gradlew clean checkstyleMain checkstyleTest
- stage: test
name: "Execute unit test"
script:
- ./gradlew clean test
- ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)
- stage: release
name: "Release to Maven Central Repository"
if: tag =~ ^v
script:
- ./prepare_before_publish
- ./gradlew publish
- ./cleanup_after_publish
- stage: release
name: "Publish snapshot"
if: branch =~ ^(develop|hotfix|release).*
script:
- ./prepare_before_publish
- ./gradlew publish -PSNAPSHOT=true
- ./cleanup_after_publish