2014-01-17 03:00:16 -08:00
|
|
|
language: java
|
2015-05-04 13:31:13 -07:00
|
|
|
sudo: false
|
2016-06-13 08:03:04 -07:00
|
|
|
install: mvn -T 2 -Ptravis -DskipTests=true -B -V install
|
2016-09-05 06:29:35 -07:00
|
|
|
script:
|
|
|
|
- mvn -T 2 -Ptravis ${JACOCO} test
|
|
|
|
- find $HOME/.m2/repository/com/google/zxing -name "*SNAPSHOT*" -exec rm {} \;
|
2015-05-03 13:14:14 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Covers Java 7, Open JDK, and code coverage
|
|
|
|
- jdk: openjdk7
|
|
|
|
env: JACOCO=-Pjacoco
|
2016-06-24 01:26:53 -07:00
|
|
|
# Covers Java 8, Oracle JDK, Android apps
|
2015-05-03 13:14:14 -07:00
|
|
|
- jdk: oraclejdk8
|
2016-06-24 01:26:53 -07:00
|
|
|
env: ANDROID_HOME=$HOME/android-sdk-linux
|
|
|
|
before_install: curl -s https://storage.googleapis.com/zxing-build/android-sdk-linux.tar.bz2 | bunzip2 | tar xf - -C $HOME
|
2014-03-26 01:57:38 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|
2014-08-16 09:31:36 -07:00
|
|
|
git:
|
2015-05-03 13:14:14 -07:00
|
|
|
depth: 10
|
2016-06-20 05:54:32 -07:00
|
|
|
after_success: if [ -n "$JACOCO" ]; then bash <(curl -s https://codecov.io/bash); fi
|