2 # Use the Android base system since it provides the SDK, etc.
7 - os: linux # this is really about OSX, Ubuntu is just bonus
12 # this doesn't actually work yet https://github.com/travis-ci/travis-ci/issues/5337
16 env: ANDROID_HOME=/usr/local/opt/android-sdk
19 - 'android-sdk-preview-license-52d11cd2'
20 - 'android-sdk-license-.+'
22 # the PPA is needed on Ubuntu 14.04 precise, and with python3, trusty too
23 # the pip thing is a hack that can go away with trusty
25 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
26 brew update > /dev/null;
27 brew install android-sdk dash gnu-sed jpeg python3;
28 sudo pip3 install pep8 pyflakes pylint;
29 sudo pip3 install -e .;
30 sudo rm -rf fdroidserver.egg-info;
31 echo y | android --verbose update sdk --no-ui --all --filter platform-tools,build-tools-24.0.1;
32 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
33 sudo add-apt-repository ppa:guardianproject/fdroidserver -y;
34 sudo apt-get -q update -y;
35 sudo apt-get -q install -y --no-install-recommends python3 python3-dev
36 python3-git python3-pil python3-libcloud python3-logilab-astng
37 python3-paramiko python3-pip python3-pyasn1 python3-pyasn1-modules
38 python3-requests python3-venv python3-yaml rsync
39 pyflakes pylint3 pep8 dash bash ruby libjpeg-dev zlib1g-dev;
40 sudo pip3 install pylint;
48 - cd $TRAVIS_BUILD_DIR
50 - ls -lR | curl -F 'clbin=<-' https://clbin.com