-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 977 Bytes
/
.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
language: java
jobs:
include:
- stage: "compile with different Java versions"
name: Java 8
jdk:
- openjdk8
install: true
script: mvn compile
- name: Java 12
jdk:
- openjdk12
install: true
script: mvn compile
- stage: "static code analysis"
name: Spotbugs - Java 8
jdk:
- openjdk8
script: mvn spotbugs:check
- name: Spotbugs - Java 12
jdk:
- openjdk12
script: mvn spotbugs:check
- name: SonarLint/SonarCloud
addons:
sonarcloud:
organization: "nightdream"
script:
- git fetch --unshallow || true
- sonar-scanner -Dsonar.projectKey=JDiscordBots_NightDream-Logging -Dsonar.host.url=https://sonarcloud.io -Dsonar.sources=src/ -Dsonar.java.binaries=target/ -Dsonar.java.libraries=target/
if: type = push
- name: check notice
jdk:
- openjdk8
install: true
script: mvn -B notice:check