chiark / gitweb /
Merge branch 'jdk8' into 'master'
[fdroidserver.git] / .travis.yml
1
2 # Use the Android base system since it provides the SDK, etc.
3 language: java
4
5 matrix:
6   allow_failures:
7     - os: linux # this is really about OSX, Ubuntu is just bonus
8   include:
9     - os: linux
10       language: android
11       sudo: required
12       # this doesn't actually work yet https://github.com/travis-ci/travis-ci/issues/5337
13       dist: trusty
14     - os: osx
15       env: ANDROID_HOME=/usr/local/opt/android-sdk
16
17 licenses:
18   - 'android-sdk-preview-license-52d11cd2'
19   - 'android-sdk-license-.+'
20
21 # the PPA is needed on Ubuntu 14.04 precise, and with python3, trusty too
22 # the pip thing is a hack that can go away with trusty
23 install:
24   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
25       brew update > /dev/null;
26       brew install android-sdk dash gnu-sed jpeg python3;
27       sudo pip3 install pep8 pyflakes pylint;
28       sudo pip3 install -e  .;
29       sudo rm -rf fdroidserver.egg-info;
30       echo y | android --verbose update sdk --no-ui --all --filter platform-tools,build-tools-23.0.3;
31       elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
32       sudo add-apt-repository ppa:guardianproject/fdroidserver -y;
33       sudo apt-get -q update -y;
34       sudo apt-get -q install -y --no-install-recommends python3 python3-dev
35       python3-git python3-pil python3-libcloud python3-logilab-astng
36       python3-paramiko python3-pip python3-pyasn1 python3-pyasn1-modules
37       python3-requests python3-venv python3-yaml rsync
38       pyflakes pylint3 pep8 dash bash ruby libjpeg-dev zlib1g-dev;
39       sudo pip3 install pylint;
40       fi
41
42 script:
43   - cd tests
44   - ./complete-ci-tests
45
46 after_failure:
47   - cd $TRAVIS_BUILD_DIR
48   - ls -lRa env
49   - ls -lR | curl -F 'clbin=<-' https://clbin.com