continuous integration - help setting up a CI environment using jenkins, rvm and cucumber -
continuous integration - help setting up a CI environment using jenkins, rvm and cucumber -
i new ci , thoughts , input on how go problem. first start off have been wrestling 2 days(and don't have much background in sys ad) please play nice?(i front-end web dev) :)
basically plan install jenkins create ci env these steps:
poll changes github if there are, run build script: a. migrate development , test dbs?(does mean have set config/database.yml in repo?) b. run cucumber c. if tests pass go 3, else fail run rake setup stuff run server(deploy)i have done of stuff cheating:
in local, switch rvm right 1 need(rvm utilize 1.8.7-p174@mygemset) run jenkins(java -jar jenkins.war) gets rvm ruby default run spork in separate terminal(because reason cucumbers don't run without spork - that's problem) build project manually clicking buildso basically, want automate these stuff. maybe need set of steps follow(general or specific, depending on taste) can setup ci , running.
keep in mind "cheats" won't want test different projects different setups , startup cheat won't do. currently, project build successful because did run cucumber(and cukes pass). want able deploy after passes maybe help there also? thanks
okay seek , help best can.
poll changes githubthis can done github plugin located here
if there are, run build script: a. migrate development , test dbs?(does mean have set config/database.yml in repo?) b. run cucumber c. if tests pass go 3, else failthen run build script have configure in in build
select "add build step" -> "execute shell".
you can either because when create build want them portable can start in new jenkins instances, dont have setup build machine, build specific files.
then run tests, if fail build should fail regardless here info on running ruby on rails tests. if need manually fail build in script based on result exiting script non-zero fail build. if not go on , run rake , deployment scripts.
just few notes on jenkins wont if can manaually jenkins can automate it. have setup running manually little bit of effort can , running automated jenkins
here reply might find helpful in general setup , ideology behind jenkins.
goodluck!
continuous-integration hudson rvm jenkins
Comments
Post a Comment