More Related Content Similar to Service Configuration Management for Rapid Growth - demo 10 steps to build pipeline - (20) More from Takashi Someda (9) Service Configuration Management for Rapid Growth - demo 10 steps to build pipeline -3. Echelon Ignite 2013 Thailand
Prerequisites
Runtime Environment
Python 2.7
Ruby 1.9
Java 1.6 or later
Tool
Vagrant 1.2
Jenkins
5. Echelon Ignite 2013 Thailand
#1 build and run app
$ git clone https://github.com/nulab/echelon-2013-scm-
webapp.git
$ cd echelon-2013-scm-webapp
$ pip install –r packages.txt
$ sqlite3 todo.db < etc/schema.sql
$ ./app.py –r -d
app
8. Echelon Ignite 2013 Thailand
#3 add “Unit Test” job
open http://localhost:8080/view/All/newJob
https://github.com/nulab/echelon-
2013-scm-webapp.git
11. Echelon Ignite 2013 Thailand
#4 build and test server
$ git clone https://github.com/nulab/echelon-2013-scm-
server.git
$ cd echelon-2013-scm-server
$ vagrant up
$ vagrant ssh-config > ssh.config
$ vagrant ssh
$ rake spec
server
12. Echelon Ignite 2013 Thailand
#5 add “Server Test” job
https://github.com/nulab/echelon-
2013-scm-server.git
13. Echelon Ignite 2013 Thailand
#5 add “Server Test” job
#!/bin/sh
vagrant up
rake -t ci:setup:rspec spec
14. Echelon Ignite 2013 Thailand
#6 deploy app
$ pip bundle -r packages.txt todo.pybundle
app
$ fab stop –H default
$ fab deploy:localdir=“../echelon-2013-scm-webapp/” –H
default
$ fab start –H default
server
15. Echelon Ignite 2013 Thailand
#7 integration test
$ git clone https://github.com/nulab/echelon-2013-scm-
selenium.git
$ cd echelon-2013-scm-selenium
$ export
SELENIUM_TARGET_HOST="http://192.168.33.10”
$ py.test tests -vl
selenium
19. Echelon Ignite 2013 Thailand
#8 add “Assemble Archive” job
open http://localhost:8080/view/All/newJob
22. Echelon Ignite 2013 Thailand
#10 add “Integration Test” job
https://github.com/nulab/echelon-
2013-scm-selenium.git
23. Echelon Ignite 2013 Thailand
#10 add “Integration Test” job
export
SELENIUM_TARGET_HOST="http://192.168.3
3.10"
py.test --junitxml=pytest.xml tests