|
12 | 12 | # Pull in the server code. |
13 | 13 | git clone --single-branch --depth 1 https://github.com/intermine/intermine.git server |
14 | 14 |
|
15 | | -# We need a running demo webapp |
16 | | -source server/config/download_and_configure_tomcat.sh |
17 | | -sleep 5 # wait for tomcat to come on line |
18 | | -# Get messages from 500 errors. |
19 | | -echo 'i.am.a.dev = true' >> server/testmodel/testmodel.properties |
20 | | -PSQL_USER=postgres sh server/testmodel/setup.sh |
21 | | -sleep 15 # wait for the webapp to come on line |
| 15 | + |
| 16 | +export PSQL_USER=postgres |
| 17 | + |
| 18 | +# Set up properties |
| 19 | +PROPDIR=$HOME/.intermine |
| 20 | +TESTMODEL_PROPS=$PROPDIR/testmodel.properties |
| 21 | +SED_SCRIPT='s/PSQL_USER/postgres/' |
| 22 | + |
| 23 | +mkdir -p $PROPDIR |
| 24 | + |
| 25 | +echo "#--- creating $TESTMODEL_PROPS" |
| 26 | +cp server/config/testmodel.properties $TESTMODEL_PROPS |
| 27 | +sed -i -e $SED_SCRIPT $TESTMODEL_PROPS |
| 28 | + |
| 29 | +# We will need a fully operational web-application |
| 30 | +echo '#---> Building and releasing web application to test against' |
| 31 | +(cd server/testmine && ./setup.sh) |
| 32 | +sleep 60 # let webapp startup |
22 | 33 |
|
23 | 34 | # Warm up the keyword search by requesting results, but ignoring the results |
24 | | -$GET $TESTMODEL_URL/service/search > /dev/null |
25 | | -# Start any list upgrades by poking the lists service. |
| 35 | +$GET "$TESTMODEL_URL/service/search" > /dev/null |
| 36 | +# Start any list upgrades |
26 | 37 | $GET "$TESTMODEL_URL/service/lists?token=test-user-token" > /dev/null |
27 | | - |
|
0 commit comments