forked from hechoendrupal/drupal-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.36 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
language: php
php:
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
env:
global:
- PROJECT_DIR=/home/project
before_script:
# This fixes a fail when install Drupal.
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer self-update
- composer install --no-dev
- curl -LSs https://box-project.github.io/box2/installer.php | php
- composer global require drush/drush:dev-master
- composer global require drupal/coder:~8.1
script:
- if [ -n "${TRAVIS_BUILD_DIR+1}" ]; then PROJECT_DIR=$TRAVIS_BUILD_DIR; fi
- phpunit
- php box.phar build
- php console.phar --version
- sudo mv console.phar /usr/local/bin/drupal
- ~/.composer/vendor/bin/drush dl drupal-8.0.0-beta12
- mv drupal-8.0.0-beta12 drupal8.dev
- cd drupal8.dev
- ~/.composer/vendor/bin/drush site-install standard --yes --account-name=root --account-pass=toor --db-url=sqlite:$PROJECT_DIR/drupal8.dev/sites/default/files/console.sqlite
- drupal chain --file=$PROJECT_DIR/config/dist/chain.yml
- ~/.composer/vendor/bin/phpcs --warning-severity=0 --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml $PROJECT_DIR/drupal8.dev/modules/custom/example
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/637685414a0d0ef9d4c6
on_success: change
on_failure: always