-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.23 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
---
sudo: false
dist: trusty
language: php
before_install:
- sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi"
- sh -c "if [ $TRAVIS_PHP_VERSION = '5.6' ]; then echo 'always_populate_raw_post_data = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi"
- travis_retry composer self-update
- travis_retry composer global require --no-update consolidation/cgr:@stable
- travis_retry composer global require --no-update hirak/prestissimo:@stable
- travis_retry composer global update
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry cgr drupal/console ~1.0 --stability RC
- travis_retry cgr drush/drush ~8.0
- travis_retry cgr phpunit/phpunit ~5.7
install:
- travis_retry composer update
- travis_retry npm update
- cd $TRAVIS_BUILD_DIR/web
- drush site-install authbucket --yes --db-url=sqlite://sites/default/files/.ht.sqlite
- php -S 127.0.0.1:8080 -t . >/dev/null 2>&1 &
script:
- cd $TRAVIS_BUILD_DIR
- phpunit -c phpunit.xml.dist --testsuite unit --group Drupal
matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
allow_failures:
- php: hhvm