forked from brainsum/gdpr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (66 loc) · 2.09 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# @file
# Travis CI integration.
git:
depth: 5
cache:
directories:
- $HOME/.composer/cache/files
language: php
php:
- 5.6.36
- 7.0.30
- 7.1.17
- 7.2.5
env:
global:
# Ensure composer is able to apply patches.
- COMPOSER_EXIT_ON_PATCH_FAILURE=1
# DRUPAL_TI Testing.
- SIMPLETEST_DB="mysql://root:@localhost/drupal_travis_db"
- SIMPLETEST_BASE_URL="http://localhost:8888"
# Ignore deprecation warnings.
- SYMFONY_DEPRECATIONS_HELPER=weak
matrix:
# Latest stable release
- DRUPAL_CORE="~8.5@alpha"
# Latest current dev branch
- DRUPAL_CORE="8.5.x-dev@dev"
# Latest future dev branch
- DRUPAL_CORE="8.6.x-dev@dev"
matrix:
fast_finish: true
allow_failures:
- php: 5.6.36
env: DRUPAL_CORE="8.6.x-dev@dev"
- php: 7.0.30
env: DRUPAL_CORE="8.6.x-dev@dev"
- php: 7.1.17
env: DRUPAL_CORE="8.6.x-dev@dev"
- php: 7.2.5
env: DRUPAL_CORE="8.6.x-dev@dev"
mysql:
database: drupal_travis_db
username: root
encoding: utf8
before_install:
# Remove xdebug. We aren't generating code coverage, and it slows down Composer.
- phpenv config-rm xdebug.ini || true
- git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
- phpenv config-add $TRAVIS_BUILD_DIR/travis-ci/travis.php.ini
# Track our general build directory.
- export DRUPAL_BUILD_ROOT="$(dirname "$TRAVIS_BUILD_DIR")"
- export VENDOR_DIR="$(dirname "$TRAVIS_BUILD_DIR")/drupal/vendor"
install:
- ./travis-ci/install.sh
before_script:
- $DRUPAL_BUILD_ROOT/drupal/vendor/bin/phpcs --config-set installed_paths $VENDOR_DIR/drupal/coder/coder_sniffer,$VENDOR_DIR/wimg/php-compatibility
- php -S localhost:8888 -t $DRUPAL_BUILD_ROOT/drupal/web &
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS drupal_travis_db"
script:
- $VENDOR_DIR/bin/parallel-lint $TRAVIS_BUILD_DIR
- $VENDOR_DIR/bin/phpcs $TRAVIS_BUILD_DIR --standard=$TRAVIS_BUILD_DIR/phpcs.xml
# @todo: Add ESLint
- $VENDOR_DIR/bin/phpunit -c $DRUPAL_BUILD_ROOT/drupal/web/core/phpunit.xml.dist --group=gdpr
notifications:
email: false
irc: "chat.freenode.net#drupal-gdpr"