1 | c:
|
---|
2 | rem Clean Database
|
---|
3 | rd /Q /S \bin\web2py\applications\eden\compiled
|
---|
4 | del /Q \bin\web2py\applications\eden\databases\*.*
|
---|
5 | del /Q \bin\web2py\applications\eden\sessions\*.*
|
---|
6 | cd \bin\web2py\applications\eden\models
|
---|
7 | sed -i "s/deployment_settings.base.migrate = False/deployment_settings.base.migrate = True/g" 000_config.py
|
---|
8 | sed -i "s/deployment_settings.base.prepopulate = False/deployment_settings.base.prepopulate = True/g" 000_config.py
|
---|
9 | cd \bin\web2py
|
---|
10 | python web2py.py -S eden -M -R applications\eden\static\scripts\tools\noop.py
|
---|
11 | rem Configure for Tests
|
---|
12 | sed -i "s/deployment_settings.ui.navigate_away_confirm = True/deployment_settings.ui.navigate_away_confirm = False/g" 000_config.py
|
---|
13 | sed -i "s/deployment_settings.ui.confirm = True/deployment_settings.ui.confirm = False/g" 000_config.py
|
---|
14 | rem Optimise config for speed
|
---|
15 | cd \bin\web2py\applications\eden\models
|
---|
16 | sed -i "s/deployment_settings.base.migrate = True/deployment_settings.base.migrate = False/g" 000_config.py
|
---|
17 | sed -i "s/deployment_settings.base.debug = True/deployment_settings.base.debug = False/g" 000_config.py
|
---|
18 | sed -i "s/deployment_settings.base.prepopulate = True/deployment_settings.base.prepopulate = False/g" 000_config.py
|
---|
19 | cd \bin\web2py\applications\eden
|
---|
20 | mkdir compiled
|
---|
21 | cd \bin\web2py
|
---|
22 | python web2py.py -S eden -R applications\eden\static\scripts\tools\compile.py
|
---|
23 | rem Run Tests
|
---|
24 | cd \bin\web2py\applications\eden\tests\selenium\scripts
|
---|
25 | start start_selenium.cmd
|
---|
26 | ping -n 4 127.0.0.1
|
---|
27 | python regressionTests.py local_ff
|
---|
28 | rem Restore dev config
|
---|
29 | cd \bin\web2py\applications\eden\models
|
---|
30 | sed -i "s/deployment_settings.base.migrate = False/deployment_settings.base.migrate = True/g" 000_config.py
|
---|
31 | sed -i "s/deployment_settings.base.debug = False/deployment_settings.base.debug = True/g" 000_config.py
|
---|
32 | sed -i "s/deployment_settings.base.prepopulate = False/deployment_settings.base.prepopulate = True/g" 000_config.py
|
---|
33 | cd ..
|
---|
34 | rd /Q /S compiled
|
---|
35 |
|
---|