-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (28 loc) · 948 Bytes
/
.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
# @file
# .travis.yml - Databse Sanitize Travis CI Integration
language: php
php:
- 7.2
matrix:
fast_finish: true
dist: trusty
# Skip tests for tags.
if: tag IS blank
env:
global:
# Set the composer vendor Path.
- COMPOSER_VENDOR_PATH="$HOME/.config/composer/vendor"
# Add executables into PATH.
- PATH="$PATH:$COMPOSER_VENDOR_PATH/bin"
- UNISH_NO_TIMEOUTS=1
before_install:
- composer self-update
install:
- composer global require drupal/coder --prefer-dist -vvv || exit 1
- phpcs --config-set installed_paths "$COMPOSER_VENDOR_PATH/drupal/coder/coder_sniffer"
before_script:
- composer install -vvv
- cd "$TRAVIS_BUILD_DIR/vendor/drush/drush"; composer install
script:
- phpcs --standard=Drupal --ignore=vendor/* --warning-severity=0 .
- php "$TRAVIS_BUILD_DIR/vendor/drush/drush/vendor/bin/phpunit" --configuration "$TRAVIS_BUILD_DIR/vendor/drush/drush/tests" "$TRAVIS_BUILD_DIR/drush/tests"