Skip to content

Commit

Permalink
Updated Travis CI to run composer install for Drupal 8.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Feb 3, 2016
1 parent 3b3e549 commit fc8e29e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -55,6 +55,10 @@ before_script:
# Reference rules in build site.
- ln -s $TESTDIR modules/rules

# Run composer install for Drupal 8.1. We need an up-to-date composer when
# installing Drupal 8.1.
- if [ "$DRUPAL_CORE" = "8.1.x" ]; then composer self-update && composer install; fi

# Start a web server on port 8888, run in the background; wait for
# initialization.
- nohup php -S localhost:8888 > /dev/null 2>&1 &
Expand All @@ -69,6 +73,6 @@ before_script:

script:
# Run the PHPUnit tests which also include the kernel tests.
- ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/rules
- ./vendor/bin/phpunit -c ./core/phpunit.xml.dist ./modules/rules
# Check for coding standards violations
- cd modules/rules && ~/.composer/vendor/bin/phpcs

0 comments on commit fc8e29e

Please sign in to comment.