This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
devel:hudson [2010/07/09 11:55] thomaska remove version.sh |
devel:hudson [2012/09/27 11:38] (current) morten remove implemented or obsolete ideas |
||
---|---|---|---|
Line 32: | Line 32: | ||
CLASSPATH=/usr/share/java/libsnmp-1.4.jar | CLASSPATH=/usr/share/java/libsnmp-1.4.jar | ||
- | ===== Create DB job ===== | + | * Hudson has no security enabled by default, so be sure to enable appropriate settings for your install. |
- | + | ||
- | * New Job | + | |
- | * Name: createdb, Type: freestyle | + | |
- | * SCM: mercurial repo: http://metanav.uninett.no/hg/series/3.6.x/ branch: 3.6.x | + | |
- | * Build Triggers: Poll SCM schedule: * * * * * | + | |
- | * Build env: | + | |
- | + | ||
- | PGDATABASE=nav-$JOB_NAME | + | |
- | + | ||
- | * Build: Execute shell | + | |
- | + | ||
- | ./tests/createdb-test.sh | + | |
- | + | ||
- | * Test build | + | |
===== Make install job ===== | ===== Make install job ===== | ||
Line 52: | Line 38: | ||
* New Job | * New Job | ||
* Name: make-install, Type: freestyle | * Name: make-install, Type: freestyle | ||
- | * SCM: mercurial repo: http://metanav.uninett.no/hg/series/3.6.x/ branch: 3.6.x | + | * SCM: mercurial repo: http://nav.uninett.no/hg/series/3.6.x/ branch: 3.6.x |
* Build Triggers: Poll SCM schedule: * * * * * | * Build Triggers: Poll SCM schedule: * * * * * | ||
* Build: Execute shell | * Build: Execute shell | ||
Line 60: | Line 46: | ||
make | make | ||
make install | make install | ||
+ | |||
+ | * Test build | ||
+ | |||
+ | ===== Create DB job ===== | ||
+ | |||
+ | * New Job | ||
+ | * Name: createdb, Type: freestyle | ||
+ | * SCM: mercurial repo: http://nav.uninett.no/hg/series/3.6.x/ branch: 3.6.x | ||
+ | * Build Triggers: After other: make-install | ||
+ | * Build env: | ||
+ | |||
+ | PGDATABASE=nav-$JOB_NAME | ||
+ | |||
+ | * Build: Execute shell | ||
+ | |||
+ | ./tests/createdb-test.sh | ||
* Test build | * Test build | ||
Line 67: | Line 69: | ||
* New Job | * New Job | ||
* Name: python-tests, Type: freestyle | * Name: python-tests, Type: freestyle | ||
- | * SCM: mercurial repo: http://metanav.uninett.no/hg/series/3.6.x/ branch: 3.6.x | + | * SCM: mercurial repo: http://nav.uninett.no/hg/series/3.6.x/ branch: 3.6.x |
- | * Build Triggers: After other: make-install, createdb | + | * Build Triggers: After other: make-install |
* Build env: | * Build env: | ||
Line 87: | Line 89: | ||
* New Job | * New Job | ||
* Name: crawler-tests, Copy: python-tests | * Name: crawler-tests, Copy: python-tests | ||
- | * Build Triggers: Poll SCM schedule: * * * * * | + | * Build Triggers: After other: createdb |
* Build env: | * Build env: | ||
Line 108: | Line 110: | ||
* New Job | * New Job | ||
* Name: upgradedb, Type: freestyle | * Name: upgradedb, Type: freestyle | ||
- | * SCM: mercurial repo: http://metanav.uninett.no/hg/series/3.6.x/ branch: 3.6.x | + | * SCM: mercurial repo: http://nav.uninett.no/hg/series/3.6.x/ branch: 3.6.x |
* Build Triggers: After other: createdb | * Build Triggers: After other: createdb | ||
* Build env: | * Build env: | ||
PGDATABASE=nav-$JOB_NAME | PGDATABASE=nav-$JOB_NAME | ||
- | OTHER_URL=http://metanav.uninett.no/hg/series/3.5.x/ | + | OTHER_URL=http://nav.uninett.no/hg/series/3.5.x/ |
OTHER_FOLDER=$WORKSPACE/3.5 | OTHER_FOLDER=$WORKSPACE/3.5 | ||
UPGRADE_FILES=3.6.*.sql trunk.sql | UPGRADE_FILES=3.6.*.sql trunk.sql | ||
Line 174: | Line 176: | ||
* Test | * Test | ||
+ | ===== Javascript Testing ===== | ||
+ | * Install Node Package Manager | ||
+ | |||
+ | apt-get install make python g++ | ||
+ | wget -N http://nodejs.org/dist/node-latest.tar.gz | ||
+ | tar xzvf node-latest.tar.gz && cd `ls -rd node-v*` | ||
+ | ./configure | ||
+ | make install | ||
+ | | ||
+ | |||
+ | * ''npm install -g buster'' | ||
+ | * install Xvfb | ||
+ | * ''dbus-x11'' maybe needed | ||
+ | * install google chrome | ||
+ | * Fetch correct package from https://www.google.com/intl/en/chrome/browser/ | ||
+ | * Install: ''dpkg -i <package>'' | ||
+ | * Maybe you need some apt-fu: ''apt-get install -f'' | ||
+ | * install imagemagick (for screenshots) | ||
===== Future ideas ===== | ===== Future ideas ===== | ||
- | * Hudson is currently only track adamcik/testing as this branch has the required helpers, so as soon as this lands in default/3.6.x Hudson should be updated to follow the correct repo. | ||
* Use LDAP for auth | * Use LDAP for auth | ||
- | * Use metanav.uninett.no/hudson as proxy (with SSL?) | ||
* Perform schema diff of upgraded DB | * Perform schema diff of upgraded DB | ||
- | * Integrate new createdb script once written | ||
- | |||