suggestion: continuous integration & automate maven publishing #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I looked into #35. I was able to get it set up for you using continuous integration so that pushing to master can auto-publish new versions of the library (its also relatively easy to add it as a step in the build.gradle which you can run manually instead).
As part of this, I changed the requirement on pocketsphinx and sphinxbase to be set via an Environment Variable rather than needing to be installed in the same dir as this repo.
How this was tested
Resulting aar:
http://dl.bintray.com/cesine/educmupocketsphinx/pocketsphinx-android/5prealpha/
Verified build using the demo:
I added travis:
cmusphinx/pocketsphinx-android-demo#47
Then I used the artifacts
cesine/pocketsphinx-android-demo@f78626e
https://travis-ci.org/cesine/pocketsphinx-android-demo/builds/318603056
If you want to use continuous integration with travis, these are the steps you would have do. Getting this set up is complex, and when android build changes, the travis build does get out of date.
Bintray
nshmyrev
on https://bintray.comedu.cmu.pocketsphinx
on https://bintray.comedu.cmu.pocketsphinx
create a repositoryandroid
Travis
pocketsphinx-android
repo https://travis-ci.org/profile/cmusphinxAfter the files are uploading to http://dl.bintray.com/edu.cmu.pocketsphinx/android/pocketsphinx-android/5prealpha/ then change the config to only upload new releases and to run only on the master branch:
"override": 1
all_branches: true