forked from nuvoleweb/ui_patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 1.15 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
language: php
php:
- 5.6
- 7.0
env:
global:
- PATH=$PATH:/home/travis/.composer/vendor/bin
install:
- composer self-update
- composer install --prefer-dist
- ./vendor/bin/phpcs --config-set installed_paths ../../drupal/coder/coder_sniffer
- ./vendor/bin/phpcs --config-set show_progress 1
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=`which true`" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
# Create database.
- mysql -e 'create database drupal'
# Install Drupal 8 target site.
- cd tests
- composer install --prefer-dist
- cd drupal
- ../vendor/bin/drush si standard -y --db-url=mysql://travis:@127.0.0.1/drupal
- ../vendor/bin/drush en ui_patterns_test -y
# Run Drush web server.
- ../vendor/bin/drush --debug runserver :8888 > ~/debug.txt 2>&1 &
- sleep 4s
- chmod -R ug+w sites
- cd $TRAVIS_BUILD_DIR
script:
- composer phpcs
- ./vendor/bin/phpunit --bootstrap ./tests/vendor/autoload.php tests/src/PhpUnit
- ./vendor/bin/behat
notifications:
email: false