forked from lmdbjava/lmdbjava
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
25 lines (25 loc) · 926 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
cache:
directories:
- $HOME/.m2
matrix:
include:
- os: linux
language: java
jdk: oraclejdk8
- os: osx
language: java
osx_image: xcode9.2
notifications:
email:
- ben.alex@acegi.com.au
- stoffe@gmail.com
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
install:
- mvn -B -Pdeploy --settings .travis-settings.xml -V dependency:go-offline
script:
- mvn -B -Pdeploy --settings .travis-settings.xml -Dgpg.skip=true verify
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then echo $GPG_KEY | base64 --decode | gpg --batch --fast-import -; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then mvn -B -Pdeploy --settings .travis-settings.xml deploy; fi