aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 448fe17b42e07ab21fa8610dcc1a1580f477e622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: android
jdk:
  - oraclejdk8
env:
  global:
    - ANDROID_API=29
    - ANDROID_BUILD_TOOLS=29.0.2
    - secure: X3J97ccW+8K0bXPXhX608vPx7Pr/G4ju7quxydqMaYGgClHxoL/WpXOBAyyllde5P28PY4kioaqcI21BEhnAw0QUbmnzVLA1Qd5VS7aMPHpEnInKuOxGZ2d570OZd1f+ozFVt05vzG0VBJlBAkVhz2GWNxQdmIV1sO28MH526JMuYaEREuuywVSZmAeY7AAbW9MeCC2wvHvNmhk2nk6NLRQcsrDHcBsimy9fnnQ9lT/QsvToi1ZJd/MN7YkGDUULR+YmaotBzG546UJ1EiZQX91bFEJfP0oL43Pk7t5snzmHnKjLOr8Mt5QsIUXaiy/uzhUVmuDh1i0GEpZmhqM7nz/T6P7ogaLbbyJeauNmf15nu+e3hSvNiTzKyIwfSSflv8Do3g8/Eo3dKfIi3I8/OKF/uZ76kywh2LRqtZAqxRDiAMDZVwsRgD4aztoWm5AWa3tSoGy1J7i1eoqX6bNqokRbjgheTqcjN13kCdSZi3pZX7UBYm2Vumhn4izhTume19Rh9SqTmRgQ8jM7ynxHh7vVsJPPJG0HbQ623xz+d9mtXGy1fAb0dcUJMXdOhFN3m6AnKuHiF7cmsqje7Euk/TOZyqZmu0xEhTkugMbNKwGrklJiwRr3IoLtPdhLE38u3/auloUqBQ4K/iA9ZdhAreTSHEaI9d3J4N6kqCj3U30=
android:
  components:
    - tools
    - platform-tools
    - build-tools-$ANDROID_BUILD_TOOLS
    - android-$ANDROID_API
    - extra-android-support
    - extra-android-m2repository
    - extra-google-m2repository
  licenses:
    - ".+"
git:
  depth: 500
before_install:
  - openssl aes-256-cbc -K $encrypted_0454d0cf846c_key -iv $encrypted_0454d0cf846c_iv
    -in files/frost.tar.enc -out files/frost.tar -d
  - tar xvf files/frost.tar
  - yes | sdkmanager "platforms;android-$ANDROID_API"
after_success:
  - "./generate-apk-release.sh"
script:
  - "./gradlew --quiet androidGitVersion"
  - "./gradlew spotlessCheck lintReleaseTest testReleaseUnitTest assembleReleaseTest"
notifications:
  email: false
  slack:
    rooms:
      secure: NC8a55iKsav9il4rNCtNZN6avovtv6ZpdJjyTRABxHp1zImn9Cuxaplecgzp8fRJqP8qLqPB/cvHG2WCSjyfB6g4rBIU/1NvtL4sLe666Mw08upTDGKwhOyr5n1MEcmpkEJaJyuh9KoNK2+8PmUmdK+1oGXYy6Sa+a8Izzpaaa05QYiKiT8wIMFSk6+kocHBNkpAxTf2l/ywChhNJcappEXNjVCkEBL5S1TUdC//lPdDmsX6o+2fvs2goyxkYJl5voL34NLf2VBxDQUd/Nu0KUhwQW+aiV4xUNZSYyKi3YjPf/SBX20YLtRbrkpqct0M93BhwjCgFlO2wdyCyUc5dMde0SJ6h42yvhZKGKTkvbO353rDqs9hhiQzVtrTr2MNkefw6eJcPUJj2yPm4hUp4ppWRHunl/7Eha78Gde4MLrwDtDWNeByPWNNYpjr8CqQtmZ0JjT8PuZB2iHyNDr8TjXQot16zQ2Xg7oDmedUymiZmjRxI812zHIAP3nqT4IKd7ji0Bi9XxSqygfqQyMBCc9DhzF8LTgJvmrZ3ValSKPcGEqLZdeaVO9VmJOnZ/AY5vBrkjaWBmArFW5m5sLOVtlS49VavN/bSdgoRXqUatcNxKyUNaJVgA4W6XnNiXB61FFkC1gDvC/7OyS/PIOse3lPehL+5Z2re92zTEYhS8s=
    on_success: always
    on_failure: always
    template:
      - Frost Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of
        %{repository}@%{branch} %{result} in %{duration}
      - "%{commit_subject}"
      - "<https://github.com/AllanWang/Frost-for-Facebook-APK-Builder/releases/tag/v%{build_number}|APK
      Download>"
sudo: false
branches:
  except:
    - master
    - l10n_dev
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - "$HOME/.gradle/caches/"
    - "$HOME/.gradle/wrapper/"