forked from maxmind/GeoIP2-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (52 loc) · 1.89 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/GeoIP2-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: NZPWyoQ7lDzSMf6zAUxXNRgwPIWGAIN6eDgTD/vnFxOPYTJX8HEvIAEuoKAqajmJMqRwUl4D1s/cANBY8+IV//KDNiOZY1Hr070Wf2FIrAyxZ13sR3YVHzK6isKF6ISgVub2qyr028Wu1y1Qv2ggx6pRvRfCIBpth3r4l4sKeQU=
- secure: VE86FgkS8MYUX1MpYiVpPCH7Zpyp9lysc3ewBS+QCmfh8dL2+GUPZRkgnQWw+k8vjD9RRkxmV7qQ9+FHTwIgw+X9jevP+mLQYeJhFKMO9Ftoq+W0kZkcg+BdAn4ATko/LJSHcKhtcdEw0+tQYlHFArf54nzgx/5ZR55fdZqCkbk=
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/GeoIP2-java; fi"
notifications:
email:
on_failure: always
on_success: change
recipients:
slack:
rooms:
secure: "IPTl7X8II+1xqMfOdmoqXOMJXXv3Ej6w7RkfriEQXL2KEjOUXYsP3MeJZ7O86ZA1R1Rpq9wn0x2EpRiyIFa+MWtxFU1LlHFSDsW0hO7X5Jjkw96riWLlNhwLi8UDJdZg8GPzTq/cMY0MCpYrjtN9w5kDQRHDA8s9dyUXPZ4L+iE=\n"