forked from nuvoleweb/drupal-behat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.2 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
language: php
dist: precise
php:
- 7.0
env:
global:
- PATH=$PATH:/home/travis/.composer/vendor/bin:$TRAVIS_BUILD_DIR/vendor/bin
matrix:
- DRUPAL_VERSION=8.3.x-dev
- DRUPAL_VERSION=8.4.x-dev
- DRUPAL_VERSION=8.5.x-dev
matrix:
allow_failures:
- php: 7.0
env: DRUPAL_VERSION=8.4.x-dev
- php: 7.0
env: DRUPAL_VERSION=8.5.x-dev
install:
- composer self-update
- composer require drupal/core:$DRUPAL_VERSION --dev --prefer-dist
before_script:
# Start PhantomJS server.
- phantomjs --webdriver=4444 > /dev/null &
# Set sendmail so drush doesn't throw an error during site install.
- echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
# Create database.
- mysql -e 'create database drupal'
# Install Drupal 8 target site.
- cd build
- ../vendor/bin/drush si config_installer -y --db-url=mysql://travis:@127.0.0.1/drupal config_installer_sync_configure_form.sync_directory=../tests/config/sync
# Run Drush web server.
- ../vendor/bin/drush --debug runserver :8888 > ~/debug.txt 2>&1 &
- sleep 4s
- chmod -R ug+w sites
script:
- cd $TRAVIS_BUILD_DIR
- grumphp run
- phpunit
- behat
notifications:
email: false