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
|
2016-06-21 16:07:14 +02:00
|
|
|
osx_image: xcode8
|
2016-02-15 14:00:52 +01:00
|
|
|
env: ANDROID_HOME=/usr/local/opt/android-sdk
|
|
|
|
|
|
|
|
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;
|
|
|
|
brew install android-sdk dash gnu-sed jpeg python3;
|
|
|
|
sudo pip3 install pep8 pyflakes pylint;
|
|
|
|
sudo pip3 install -e .;
|
2016-02-15 23:06:23 +01:00
|
|
|
sudo rm -rf fdroidserver.egg-info;
|
2016-12-23 17:46:09 +01:00
|
|
|
echo y | android --verbose update sdk --no-ui --all --filter platform-tools,build-tools-25.0.2;
|
2016-02-15 14:00:52 +01:00
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo add-apt-repository ppa:guardianproject/fdroidserver -y;
|
|
|
|
sudo apt-get -q update -y;
|
2016-03-14 11:02:01 +01:00
|
|
|
sudo apt-get -q install -y --no-install-recommends python3 python3-dev
|
|
|
|
python3-git python3-pil python3-libcloud python3-logilab-astng
|
|
|
|
python3-paramiko python3-pip python3-pyasn1 python3-pyasn1-modules
|
2016-04-14 17:16:58 +02:00
|
|
|
python3-requests python3-venv python3-yaml rsync
|
2016-03-14 11:02:01 +01:00
|
|
|
pyflakes pylint3 pep8 dash bash ruby libjpeg-dev zlib1g-dev;
|
|
|
|
sudo pip3 install pylint;
|
2016-02-15 14:00:52 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd tests
|
|
|
|
- ./complete-ci-tests
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- ls -lRa env
|
|
|
|
- ls -lR | curl -F 'clbin=<-' https://clbin.com
|