2014-01-17 03:00:16 -08:00
|
|
|
|
language: java
|
2015-05-04 13:31:13 -07:00
|
|
|
|
sudo: false
|
2018-10-25 05:43:26 -07:00
|
|
|
|
install: mvn -Ptravis -DskipTests=true -nsu -B install
|
2016-09-05 06:29:35 -07:00
|
|
|
|
script:
|
2018-10-25 05:43:26 -07:00
|
|
|
|
- mvn -Ptravis ${JACOCO} -nsu -B test
|
2016-09-06 09:47:57 -07:00
|
|
|
|
- find $HOME/.m2/repository/com/google/zxing -path "*SNAPSHOT/*" -delete
|
|
|
|
|
- find $HOME/.m2/repository/com/google/zxing -name "*SNAPSHOT" -type d -delete
|
2015-05-03 13:14:14 -07:00
|
|
|
|
matrix:
|
|
|
|
|
include:
|
2018-10-25 05:43:26 -07:00
|
|
|
|
- jdk: openjdk8
|
2019-05-13 16:44:57 -07:00
|
|
|
|
env:
|
|
|
|
|
- JACOCO=-Pjacoco
|
|
|
|
|
- ANDROID_HOME=$HOME/android-sdk-linux
|
2017-01-24 05:25:08 -08:00
|
|
|
|
before_install: if [ ! -d $HOME/android-sdk-linux/platforms ]; then curl -s https://storage.googleapis.com/zxing-build/android-sdk-linux.tar.bz2 | bunzip2 | tar xf - -C $HOME; else ls -l $HOME/android-sdk-linux; fi
|
2017-09-22 08:07:00 -07:00
|
|
|
|
- jdk: oraclejdk9
|
2014-03-26 01:57:38 -07:00
|
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- $HOME/.m2
|
2016-09-07 05:49:50 -07:00
|
|
|
|
- $HOME/android-sdk-linux
|
2014-08-16 09:31:36 -07:00
|
|
|
|
git:
|
2015-05-03 13:14:14 -07:00
|
|
|
|
depth: 10
|
2017-01-24 05:25:08 -08:00
|
|
|
|
after_success: if [ -n "$JACOCO" ]; then bash <(curl -s https://codecov.io/bash); fi
|
|
|
|
|
|
|
|
|
|
# The Android SDK package android-sdk-linux.tar.bz2 above is built roughly like so:
|
|
|
|
|
#
|
2019-05-15 18:37:26 -07:00
|
|
|
|
# Download Command Line tools for Linux from https://developer.android.com/studio#downloads
|
|
|
|
|
#
|
2017-01-24 05:25:08 -08:00
|
|
|
|
# mkdir android-sdk-linux; cd android-sdk-linux
|
2019-05-15 18:37:26 -07:00
|
|
|
|
# mv /path/to/sdk-tools-linux-4333796.zip .
|
2017-01-24 05:59:16 -08:00
|
|
|
|
# unzip *.zip; rm *.zip
|
2017-01-24 05:25:08 -08:00
|
|
|
|
#
|
2017-01-24 05:59:16 -08:00
|
|
|
|
# # Or different, more recent versions; see sdkmanager --list
|
2019-05-15 18:37:26 -07:00
|
|
|
|
# ./tools/bin/sdkmanager "platforms;android-22" "build-tools;28.0.2"
|
2017-01-24 05:25:08 -08:00
|
|
|
|
# # Accept license
|
|
|
|
|
#
|
|
|
|
|
# ./tools/bin/sdkmanager --update
|
|
|
|
|
# # Accept license
|
|
|
|
|
#
|
2017-01-24 05:59:16 -08:00
|
|
|
|
# cp tools/source.properties ..
|
|
|
|
|
#
|
|
|
|
|
# ./tools/bin/sdkmanager --uninstall tools
|
|
|
|
|
#
|
|
|
|
|
# mkdir tools; mv ../source.properties tools
|
|
|
|
|
#
|
2017-01-24 05:25:08 -08:00
|
|
|
|
# cd ..
|
|
|
|
|
# tar cf - android-sdk-linux | bzip2 -9 > android-sdk-linux.tar.bz2
|