forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.21 KB
/
.travis.yml
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
sudo: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6059
- platform-tools
- android-25
- build-tools-26.0.0
before_script:
- export TERM=dumb
script:
- set -e
- cd $TRAVIS_BUILD_DIR/AndroidAnnotations
- ./mvnw install -P travis
- cd $TRAVIS_BUILD_DIR/examples/maven
- ./mvnw install
- cd $TRAVIS_BUILD_DIR/examples/gradle
- ./gradlew assembleDebug
- set +e
after_success:
- if [[ $TRAVIS_REPO_SLUG == 'androidannotations/androidannotations' && $TRAVIS_BRANCH == 'develop' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_JDK_VERSION == 'oraclejdk8' ]]; then cd $TRAVIS_BUILD_DIR/AndroidAnnotations && ./mvnw -DskipTests -Dquiet -s ../settings.xml deploy ; fi
notifications:
webhooks:
urls:
secure: BOoKIc3qLKIx4efsNqg3Z6ErgBIF6xKKljozg5/GxaSPr9R58W/rOfyNJKtVpzfGlD0Z0e8psTb5FPGs/CNRprUJwCANGJ72FIc+NuEdO0+kLpvsvkl0yWJc5WHuOzqTTlsuPjfATB820AFTboIoV9tQ9wNhHB4vpyRqKPErdjg=
on_success: change
on_failure: always
on_start: false