2016-02-15 14:00:52 +01:00
|
|
|
|
|
|
|
# Use the Android base system since it provides the SDK, etc.
|
|
|
|
language: java
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- os: linux # this is really about OSX, Ubuntu is just bonus
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
language: android
|
|
|
|
sudo: required
|
|
|
|
# this doesn't actually work yet https://github.com/travis-ci/travis-ci/issues/5337
|
|
|
|
dist: trusty
|
|
|
|
- os: osx
|
2017-09-19 19:58:31 +02:00
|
|
|
osx_image: xcode9
|
|
|
|
env: ANDROID_SDK_ROOT=/usr/local/share/android-sdk
|
|
|
|
env: ANDROID_HOME=/usr/local/share/android-sdk
|
2016-02-15 14:00:52 +01:00
|
|
|
|
|
|
|
licenses:
|
|
|
|
- 'android-sdk-preview-license-52d11cd2'
|
|
|
|
- 'android-sdk-license-.+'
|
|
|
|
|
|
|
|
# the PPA is needed on Ubuntu 14.04 precise, and with python3, trusty too
|
|
|
|
# the pip thing is a hack that can go away with trusty
|
|
|
|
install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2016-03-14 11:02:01 +01:00
|
|
|
brew update > /dev/null;
|
2017-09-19 19:58:31 +02:00
|
|
|
brew install dash bash python3 gradle;
|
|
|
|
brew install gnu-sed --with-default-names;
|
|
|
|
brew cask install android-sdk;
|
|
|
|
|
|
|
|
mkdir -p "$ANDROID_HOME/licenses";
|
|
|
|
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license";
|
|
|
|
echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license";
|
|
|
|
echo y | $ANDROID_HOME/tools/bin/sdkmanager "platform-tools";
|
|
|
|
echo y | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;25.0.2";
|
|
|
|
echo y | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-23";
|
|
|
|
|
2016-03-14 11:02:01 +01:00
|
|
|
sudo pip3 install -e .;
|
2016-02-15 23:06:23 +01:00
|
|
|
sudo rm -rf fdroidserver.egg-info;
|
2017-09-19 19:58:31 +02:00
|
|
|
|
|
|
|
echo $PATH;
|
|
|
|
echo $JAVA_HOME;
|
|
|
|
/usr/libexec/java_home;
|
|
|
|
java -version;
|
|
|
|
which java;
|
|
|
|
javac -version;
|
|
|
|
which javac;
|
|
|
|
jarsigner -help;
|
|
|
|
which jarsigner;
|
|
|
|
keytool -help;
|
|
|
|
which keytool;
|
|
|
|
fi
|
2016-02-15 14:00:52 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cd tests
|
|
|
|
- ./complete-ci-tests
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- ls -lR | curl -F 'clbin=<-' https://clbin.com
|