chiark / gitweb /
remove gradle-wrapper.jar during scan
[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       osx_image: xcode8
16       env: ANDROID_HOME=/usr/local/opt/android-sdk
17
18 licenses:
19   - 'android-sdk-preview-license-52d11cd2'
20   - 'android-sdk-license-.+'
21
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
24 install:
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-25.0.2;
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;
41       fi
42
43 script:
44   - cd tests
45   - ./complete-ci-tests
46
47 after_failure:
48   - cd $TRAVIS_BUILD_DIR
49   - ls -lRa env
50   - ls -lR | curl -F 'clbin=<-' https://clbin.com