-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated deployment #631
Comments
See also the 'Adding CI' support section of this article: https://atmospherejs.com/i/publishing There is a quick example of a Meteor CI script: language: node_js
node_js:
- "0.10"
before_install:
- "curl -L http://git.io/ejPSng | /bin/sh" The shell script linked to in the curl command looks like this: #!/bin/sh
#configuring the system
wget https://raw.github.com/arunoda/travis-ci-meteor-packages/master/Makefile
wget https://raw.github.com/arunoda/travis-ci-meteor-packages/master/start_test.js
wget https://raw.github.com/arunoda/travis-ci-meteor-packages/master/phantom_runner.js
#install meteor
curl https://install.meteor.com | /bin/sh
#installing meteorite
npm install -g meteorite |
Encryption key & iv are stored as environment variables and seem to have problems with Travis: pockethub/PocketHub#884 I am getting the same error "iv undefined". |
Environment variables were not successfully loaded cause I didn't have admin rights yesterday when I made file encryption. Made that again and got it working. |
Yay, successfully deployed to APIKA staging using Travis. I had to remove android platform. I will put ticket about this. I suppose building Android .apk is not necessary? |
@brylie I think making Meteor package is not the case here. Travis CI runs the Meteor Up deploy command (builds & uploads the application to server). Next steps: define when to launch build. With Travis API it's also possible to launch builds periodically rather than on push & pull request. Periodically might be ok for APIKA. Apinf master-branch mirror update happens once a week, so could be fine to run Travis also weekly. |
The article simply describes adding CI support for Meteor.js code. It applies equally well to Meteor projects. It was for reference purposes. |
This needs some kind of a plan for the schedule, and discuss how we sync with Apinf. Or should I put Travis deployment for "staging" against "develop" branch? Currently it uses "master" branch. Master branch will be mirrored anyway, but if there is not specific schedule for releases and we're not deploying straight to production, that could be done manually when we decide to move to new release. |
Staging can use the develop branch, just with the understanding that |
Alternatively, we could decide to make a couple of stable releases (from 2015-11-23 15:43 GMT+02:00 Brylie Christopher Oxley <
Taija Björklund |
Update: I'll continue next week with different approach. We talked shortly in the daily about using nightly.apinf.io for "develop" branch deployments, so that it would benefit the project. I need access to that server to deploy there. |
@ccsr or @elnzv, will you please give @jykae access to the nightly.apinf.io server? @jykae, check out the travis.yml file in Telescope, as it is very similar to what we are aiming for in terms of testing and deployment. |
@brylie @elnzv Good! Here's also nice guide, that gives better understanding (imho) than few mysterious lines, https://docs.travis-ci.com/user/gui-and-headless-browsers/ |
And in the high abstraction level, is this Telescope frontpage (demo & Heroku deployment) something we would like to have for the product? Magical deployment by pressing the button :) More on Monday planning.. |
@brylie Cucumber would complement Jasmine nicely, http://xolv.io/blog-posts/2015/11/6/the-seven-testing-modes-of-meteor Example: https://coderwall.com/p/qj9d0w/testing-meteor-with-cucumberjs PhantomJS could be used instead of Zombie, I suppose. Zombie is webkit emulator, PhantomJS has full webkit support. Aftermath feat. imhoAutomated acceptance testing like in the example above, could be something we could have for adding features like Sign up, Login, Add backend etc. It might help to tackle the basic problems before the bugs go to the release. That could be something for person in the team who is working with integration & deployment. |
I've used cucumber in the past and it was great. |
Configure automated deployment using Travis CI.
Blog article: https://sungwoncho.io/meteorjs-continuous-delivery/
Github example: https://github.com/sungwoncho/meteor-continuous-delivery
The text was updated successfully, but these errors were encountered: