-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (35 loc) · 1.34 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
sudo: false
language: php
php:
- 5.5.9
- 5.6
- 7.0
- 7.1
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: 7.0
- php: 7.1
env:
global:
- PROJECT_DIR=/home/project
before_script:
- phpenv config-rm xdebug.ini
# 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 drupal/coder:~8.1
script:
- if [ -n "${TRAVIS_BUILD_DIR+1}" ]; then PROJECT_DIR=$TRAVIS_BUILD_DIR; fi
# - phpunit
# - php box.phar build
# - php drupal.phar init
# - php drupal.phar check
# - php drupal.phar site:new drupal8.dev --latest --no-interaction
# - cd drupal8.dev
# - php ../drupal.phar site:install standard --langcode=en --db-type=sqlite --db-file=sites/default/files/.ht.sqlite --site-name="Drupal 8 Site Install" [email protected] --account-name=admin [email protected] --account-pass=admin --no-interaction
# - php ../drupal.phar chain --file=$PROJECT_DIR/config/dist/chain/sample.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