forked from lmdbjava/lmdbjava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 962 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
cache:
directories:
- $HOME/.m2
matrix:
include:
- os: linux
sudo: required
dist: trusty
language: java
jdk: oraclejdk8
- os: osx
language: java
osx_image: xcode8.2
notifications:
email:
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