This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
forked from maxmind/MaxMind-DB-Reader-java
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (52 loc) · 1.91 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
---
sudo: false
addons:
coverity_scan:
project:
description: Build submitted via Travis CI
name: maxmind/MaxMind-DB-Reader-java
notification_email: [email protected]
build_command_prepend: mvn clean
build_command: mvn -DskipTests=true compile
branch_pattern: .*coverity.*
language: java
matrix:
include:
- jdk: openjdk8
- jdk: openjdk11
env: RUN_SNYK=true
- jdk: openjdk11
- jdk: openjdk12
- jdk: openjdk13
- jdk: openjdk-ea
- jdk: oraclejdk8
dist: trusty
- jdk: oraclejdk11
- jdk: oraclejdk12
- jdk: oraclejdk13
- jdk: oraclejdk-ea
allow_failures:
- jdk: openjdk-ea
- jdk: oraclejdk-ea
env:
global:
- secure: KXF3RVBZDxeASAnleYlTaqvxRRB9FSzSAdVV9h7Kw81+p4UO64b8CPJR1p4fLIVwAp8C4R8h0xZDN3pAv/iyeA4ndIeh9tQXNZBm737RE5x+6x6nf/shP/Em1w9T1s3KmretXoTFK5NJGv2yTesgaIAV/JV1OFvlG6ArswhrPFc=
- secure: M5ftg9qwzSuGMZ+wfcpvA/11Dg0KWwmP6skFm3gpxBmIMcpvwZd77QhVjnPZoTf+NSg/rGgmS0wIW8ZmuM19ihs8BKUBHQa2oXcehI0YWdAFH6EUOSxEz2Al2w8zHNDmECsIFzivHL21DhoeBi8FZh3/cmg6fzyBNnPB1kwRGQY=
before_install:
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then sudo apt-get install -y nodejs; fi"
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then npm install -g snyk; fi"
install:
- mvn install -DskipTests=true -Dgpg.skip=true
- "if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then snyk test --org=maxmind; fi"
after_success:
- mvn clean cobertura:cobertura coveralls:report
- "if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $RUN_SNYK && $SNYK_TOKEN ]]; then snyk monitor --org=maxmind --project-name=maxmind/MaxMind-DB-Reader-java; fi"
notifications:
email:
on_failure: always
on_success: change
recipients:
slack:
rooms:
secure: "LhzslDxUg5Vcz5zP2oB7asZpwMZPK4rIppujE4Fa5wDuj1F2olJCQompQdiwh98E40ke4e3eLIif58nK34risw6FXhwWPBRyPnIy0JsYVwFHO1/tHk8jjHf1j6XuDVcLkE/drFaRNtDraS5CQ91BHYFnroq3vj9tL1LA4GavzNg=\n"