forked from jhedstrom/drupalextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.79 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
38
39
40
41
42
43
44
45
46
47
48
49
50
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
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
- cp -r fixtures/drupal7/modules/behat_test drupal7/sites/all/modules
- cd drupal7
- drush --yes en behat_test
- drush --yes fr behat_test
- drush cc all
- drush --debug runserver :8887 > ~/debug7.txt 2>&1 &
- cd -
# Setup a stock Drupal 8 install to test api abilities.
- mysql -e 'create database drupal8'
- (cd drupal8 && git pull && cd -) || git clone --branch 8.0.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
- cp -r fixtures/drupal8/modules/behat_test drupal8/modules
- cd drupal8
- drush --yes en behat_test
- drush cr
- drush runserver :8888 > ~/debug8.txt 2>&1 &
- cd -
- sleep 4s
script:
- vendor/bin/phpspec run -f pretty --no-interaction
- vendor/bin/behat -fprogress --strict
- vendor/bin/behat -fprogress --profile=drupal7 --strict
- vendor/bin/behat -fprogress --profile=drush --strict
- vendor/bin/behat -fprogress --profile=drupal8 --strict
after_failure:
- cat ~/debug7.txt
- cat ~/debug8.txt