-
Notifications
You must be signed in to change notification settings - Fork 1
How To Develop
Stefan Oravec edited this page May 12, 2015
·
2 revisions
Set sqlTool used to connect and execute SQL*Plus scripts in ./config/env/all.js
Sample:
'use strict';
module.exports = {
sqlTool : 'sql' // sqlplus
};Create ./config/env/development.js and define connection string for
-
superUserDbConnectString- user with system privileges to create users and grant required privileges -
peteUserDbConnectString- schema, where your pete development/testing environment would be installed
Sample:
'use strict';
module.exports = {
db: {
superUserDbConnectString: 'sys/manager@localhost:1521:orcl as sysdba',
peteUserDbConnectString: 'pete_test/pete_test@lcoalhost:1521:orcl'
},
};Continues Integration scripts are based on node & grunt. Install required toolchain.
- install node
- install npm
npm install -g grunt-clinpm install
There are already preconfigured Grunt task for Continuous Integration
-
grunt install- installs Pete into schema defined bypeteUserDbConnectString -
grunt uninstall- uninstalls Pete from that schema -
grunt test- recompiles Pete test packages and runs defined Pete tests -
grunt reinstall- uninstall and reinstall Pete -
grunt ci- reinstalls Pete, runs tests and then watches for changes inapplication/\*\*/*.sql. If there is any change, it reinstalls Pete and reruns tests.