diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..708a78e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +branches: + only: + - master + +language: android +sudo: false + +android: + components: + - build-tools-23.0.1 + - android-22 + - doc-23 + - extra-android-support + - extra-android-m2repository + +before_install: + - pip install --user codecov + +script: + - ./gradlew clean testDebugUnitTest jacocoTestReport --info + +after_success: + - codecov + - ./scripts/publish_snapshot.sh + +cache: + directories: + - $HOME/.gradle + - $HOME/.m2/repository diff --git a/README.md b/README.md index 0636f4d..9c2c635 100644 --- a/README.md +++ b/README.md @@ -95,10 +95,10 @@ We want to make contributing to this project as easy and transparent as possible [build-status-svg]: https://img.shields.io/travis/ParsePlatform/ParseLiveQuery-Android/master.svg [build-status-link]: https://travis-ci.org/ParsePlatform/ParseLiveQuery-Android/branches - [coverage-status-svg]: https://coveralls.io/repos/ParsePlatform/ParseLiveQuery-Android/badge.svg?branch=master&service=github - [coverage-status-link]: https://coveralls.io/github/ParsePlatform/ParseLiveQuery-Android?branch=master + [coverage-status-svg]: https://img.shields.io/codecov/c/github/ParsePlatform/ParseLiveQuery-Android/master.svg + [coverage-status-link]: https://codecov.io/github/ParsePlatform/ParseLiveQuery-Android?branch=master [maven-svg]: https://maven-badges.herokuapp.com/maven-central/com.parse/parse-livequery-android/badge.svg?style=flat [maven-link]: https://maven-badges.herokuapp.com/maven-central/com.parse/parse-livequery-android [license-svg]: https://img.shields.io/badge/license-BSD-lightgrey.svg - [license-link]: https://github.com/ParsePlatform/ParseLiveQuery-Android/blob/master/LICENSE \ No newline at end of file + [license-link]: https://github.com/ParsePlatform/ParseLiveQuery-Android/blob/master/LICENSE diff --git a/scripts/publish_snapshot.sh b/scripts/publish_snapshot.sh index 364cde3..e8a3ca0 100755 --- a/scripts/publish_snapshot.sh +++ b/scripts/publish_snapshot.sh @@ -1,7 +1,7 @@ #!/bin/bash # Publishes SNAPSHOTs -REPO_SLUG=ParsePlatform/Parse-SDK-Android +REPO_SLUG=ParsePlatform/ParseLiveQuery-Android BRANCH=master set -e