I'm using Travis to test CoinsManager everytime a commit is pushed to upstream.
And up to now, I'm regularly deploying on Heroku with the following steps:
- update the app settings on heroku
- generate css and commit it
- push only the code within the app/ directory to heroku
- remove local css commit
Which translates to:
$ heroku --app coinsmanager-beta config:add METEOR_SETTINGS="`cat app/settings.json`"
$ cd app/client/compass && compass compile && cd -
$ for file in `find . -name "*css"`; do git add -f $file; done; git ci -am "heroku style"
$ git push heroku-beta `git subtree split --prefix app develop`:master --force
$ git reset --soft HEAD~1 && git reset HEAD .
I want now to add Continuous Deployment, and get my beta version updated every time a commit is pushed on the upstream develop branch, after tests have passed.
Please read my .travis.yml
file here.
I first tried to do the steps on deploy.run, but as you can see in this build, all the tools like wget, compass, meteor etc are not found.
When I try to move those steps in after_success, for example in this build, I get issues with heroku credentials required, not sure how to give them from travis while keeping that information secure. Moreover, after_success is run after all builds, regardless of the branch, which means that if a commit is pushed to master, and tests pass, a new build will be started on heroku using the master branch app/ data.
Any idea how to solve those issues and get my Continuous Deployment set up properly?