forked from jhedstrom/drupalextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.52 KB
/
.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
30
31
32
33
34
35
36
37
language: php
php:
- 5.5
- 5.4
env:
- PATH=$PATH:/home/travis/.composer/vendor/bin
install:
- composer self-update
- composer install
- sudo apt-get update > /dev/null
- sudo apt-get --quiet=2 install php5-cli php5-cgi php5-curl php5-gd php5-mysql > /dev/null
- composer global require drush/drush:dev-master --prefer-source
- cd /home/travis/.composer/vendor/drush/drush && composer require youngj/httpserver:dev-master#41dd2b7 && cd -
before_script:
# Set sendmail so drush doesn't throw an error during site install.
- echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
# Setup a stock Drupal 7 install to test api abilities.
- mysql -e 'create database drupal7'
- drush --quiet dl drupal-7 --drupal-project-rename=drupal7
- drush --yes --root=$PWD/drupal7 site-install --db-url=mysql://travis:@127.0.0.1/drupal7
- drush --quiet --yes --root=$PWD/drupal7 runserver :8887 > /dev/null 2>&1 &
# Setup a stock Drupal 8 install to test api abilities.
- mysql -e 'create database drupal8'
- (cd drupal8 && git pull && cd -) || git clone --branch 8.x http://git.drupal.org/project/drupal.git drupal8
- drush --yes --root=$PWD/drupal8 site-install --db-url=mysql://travis:@127.0.0.1/drupal8
- drush --quiet --yes --root=$PWD/drupal8 runserver :8888 > /dev/null 2>&1 &
- sleep 4s
script:
- vendor/bin/behat -fprogress
- vendor/bin/behat -fprogress --profile=drupal7
- vendor/bin/behat -fprogress --profile=drush
- vendor/bin/behat -fprogress --profile=drupal8