forked from georgeh/brewblogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (23 loc) · 791 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: php
php:
- "5.4"
- "5.5"
services: mysql
install:
- composer self-update
- composer install --dev --no-interaction
before_script:
# Database
- mysql -e 'create database brewblogger;'
- mysql -u root -e "CREATE USER 'brewblogger'@'localhost' IDENTIFIED BY 'brewblogger'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'brewblogger'@'localhost' WITH GRANT OPTION;"
- mysql -u root brewblogger < sql/2.3.3_new_install.sql
- mysql -u root brewblogger -e 'UPDATE preferences SET mode=2;'
# Update Behat Path
- "sed -i -e 's,base_url: http://localhost/brewblogger/,base_url: http://localhost:8000/,g' behat.yml"
# Start up the server
- php -S localhost:8000 &
- sleep 3
script:
- vendor/bin/behat
# - php vendor/bin/phpunit -c phpunit.xml.dist