aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2015-08-20 16:02:27 -0700
committerKenny Root <kenny@the-b.org>2015-08-20 16:16:50 -0700
commit30b59b3432344ce6ba2ded960194aa88bd01e030 (patch)
tree6379a12709c2432f9a8066afed6b164f58f08ce6 /.travis.yml
parent78d05826e37144bcb8922e51fa226bd01a3e65d7 (diff)
downloadconnectbot-30b59b3432344ce6ba2ded960194aa88bd01e030.tar.gz
connectbot-30b59b3432344ce6ba2ded960194aa88bd01e030.tar.bz2
connectbot-30b59b3432344ce6ba2ded960194aa88bd01e030.zip
travis: make sure we do not increase lint issues
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d7b9232..540cff3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,7 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/dists/
- $HOME/.cache/ndk
+ - $HOME/.cache/lint
before_cache:
- find $HOME/.gradle -name "*.lock" -exec rm {} \;
- rm -rf $HOME/.gradle/caches/[1-9]*
@@ -24,6 +25,7 @@ addons:
- ia32-libs-multiarch
- libgd2-xpm
- p7zip-full
+ - libxml2-utils # ./scripts/check-lint-count.sh
coverity_scan:
project:
name: "connectbot/connectbot"
@@ -39,6 +41,8 @@ before_script:
- curl https://dl.google.com/android/ndk/android-ndk-${NDK_VERSION}-linux-x86_64.bin -z $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin -o $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin
- 7z x -y $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin | grep -v 'ing '
- echo "ndk.dir=`pwd`/android-ndk-${NDK_VERSION}" >> local.properties
+ # For the lint checking mechanism
+ - mkdir -p $HOME/.cache/lint
android:
components:
@@ -49,6 +53,8 @@ android:
license:
- '.+'
-script: ./gradlew build check jacocoTestDebugReport
+script:
+ - ./gradlew build check jacocoTestDebugReport
+ - ./scripts/check-lint-count.sh app/build/outputs/lint-results.xml $HOME/.cache/lint/issue-count.txt $HOME/.cache/lint/issue-count.txt
after_success: ./gradlew coveralls