chiark / gitweb /
12816ff5b73de1d6eafae8a0af82ed989a6d810a
[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 #jdk:
18 #  - oraclejdk8
19 #  - oraclejdk7
20 #  - openjdk7
21
22 licenses:
23   - 'android-sdk-preview-license-52d11cd2'
24   - 'android-sdk-license-.+'
25
26 # the PPA is needed on Ubuntu 14.04 precise, and with python3, trusty too
27 # the pip thing is a hack that can go away with trusty
28 install:
29   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
30       brew update;
31       brew install android-sdk dash gnu-sed jpeg python;
32       sudo pip install pep8 pyflakes pylint
33       apache-libcloud mwclient paramiko pillow pyasn1 pyasn1-modules
34       pyyaml requests;
35       echo y | android --verbose update sdk --no-ui --filter platform-tools,build-tools-23.0.2;
36       elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
37       sudo add-apt-repository ppa:guardianproject/fdroidserver -y;
38       sudo apt-get -q update -y;
39       sudo apt-get -q install -y --no-install-recommends python
40       python-git python-imaging python-libcloud python-logilab-astng
41       python-paramiko python-pip python-pyasn1
42       python-requests python-virtualenv python-yaml rsync
43       pylint pep8 dash bash ruby
44       python-dev libjpeg-dev zlib1g-dev;
45       sudo pip install pyasn1-modules;
46       fi
47
48 script:
49   - cd tests
50   - ./complete-ci-tests
51
52 after_failure:
53   - cd $TRAVIS_BUILD_DIR
54   - ls -lRa env
55   - ls -lR | curl -F 'clbin=<-' https://clbin.com