sregg / spotify-tv

Unofficial Spotify app for Android TV
GNU General Public License v2.0
45 stars 15 forks source link

Travis CI #3

Closed Dahlgren closed 9 years ago

Dahlgren commented 9 years ago

This adds Travis CI configuration to the repository. Travis CI for open source project is free and will not cost your a dime. Builds will be trigged for commits pushed directly to your repo i.e. by you and also all pull requests submitted by others. Travis CI will notify if a build fails and will add a nice icon to the commit with the build result and/or show a message indicating if the code can be successfully built after a pull request merge or not. It will currently build the debug configuration and check for any code issues. This can of course be extended to run unit tests, lint the code, check formatting or run other Java analytic tools. Travis CI could also automatically upload new builds to Google Play, HockeyApp or other services, both for release or for limited testers.

To enable Travis CI for this repository, go to https://travis-ci.org/, login with your Github account and add this repository. Here's the build history for Travis CI builds on my forked repository, https://travis-ci.org/Dahlgren/spotify-tv

It is not required that people who fork your build to enable Travis CI for their accounts. Pull requests sent by other will be built by Travis CI once the create the pull request to your repo.

Current build status can also be added to the README file. See http://docs.travis-ci.com/user/status-images/. Example for my forked repo, Build Status

To avoid issues with the release configuration in the build.gradle file the values has been moved to release.properties. The file is added to gitignore. This also eases work for new contributors since the current build.gradle file fails to load in Android Studio. I hope this isn't an issue for you.

sregg commented 9 years ago

That's a good idea! Maybe that'll motivate me (or you ;)) to add some unit tests.