-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
58 lines (45 loc) · 1.42 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
# @file
# Travis CI integration.
git:
depth: 5
cache:
directories:
- $HOME/.composer/cache/files
language: php
php:
- 5.6
- 7
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"
matrix:
# Latest stable release
- DRUPAL_CORE="~8.0@stable"
matrix:
fast_finish: true
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
# Track our general build directory.
- export DRUPAL_BUILD_ROOT="$(dirname "$TRAVIS_BUILD_DIR")"
install:
- ./travis-ci/install.sh
before_script:
- $DRUPAL_BUILD_ROOT/drupal/vendor/bin/phpcs --config-set installed_paths $DRUPAL_BUILD_ROOT/drupal/vendor/drupal/coder/coder_sniffer
# - php -S localhost:8888 -t $DRUPAL_BUILD_ROOT/drupal/web &
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS drupal_travis_db"
script:
- $DRUPAL_BUILD_ROOT/drupal/vendor/bin/phpcs $TRAVIS_BUILD_DIR -p --colors
# - $DRUPAL_BUILD_ROOT/drupal/vendor/bin/phpunit -c $DRUPAL_BUILD_ROOT/drupal/web/core/phpunit.xml.dist --group=simplytest
notifications:
email: false
# irc: "chat.freenode.net#simplytest"