New project structure
Beta of extract.js for extracting english locale
This commit is contained in:
parent
e18d2b2f84
commit
2edbd67205
247 changed files with 6405 additions and 4237 deletions
36
server/test/e2e/install.sh
Normal file
36
server/test/e2e/install.sh
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This installation script works on Ubuntu 14.04 and 16.04
|
||||
# Run as root!
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
MYSQL_PASSWORD=`pwgen 12 -1`
|
||||
|
||||
# Setup MySQL user for Mailtrain Tests
|
||||
mysql -u root -e "CREATE USER 'mailtrain_test'@'localhost' IDENTIFIED BY '$MYSQL_PASSWORD';"
|
||||
mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain_test.* TO 'mailtrain_test'@'localhost';"
|
||||
mysql -u mailtrain_test --password="$MYSQL_PASSWORD" -e "CREATE database mailtrain_test;"
|
||||
|
||||
# Setup installation configuration
|
||||
cat >> config/test.toml <<EOT
|
||||
[www]
|
||||
port=3000
|
||||
[mysql]
|
||||
user="mailtrain_test"
|
||||
password="$MYSQL_PASSWORD"
|
||||
database="mailtrain_test"
|
||||
[testServer]
|
||||
enabled=true
|
||||
[seleniumWebDriver]
|
||||
browser="phantomjs"
|
||||
EOT
|
||||
|
||||
echo "Success! The test database has been created.";
|
Loading…
Add table
Add a link
Reference in a new issue