forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.46 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
language: php
dist: xenial
php:
- 7.1
- 7.2
env:
global:
- COMPOSER_BIN=$TRAVIS_BUILD_DIR/vendor/bin
- BLT_DIR=$TRAVIS_BUILD_DIR
- DRUPAL_CORE_HEAD=^8.7.0-alpha1
matrix:
- DRUPAL_CORE_VERSION=default PHPUNIT_EXCLUDE_GROUP='drupal,long,requires-vm'
- DRUPAL_CORE_VERSION=default PHPUNIT_GROUP='long' PHPUNIT_EXCLUDE_GROUP='drupal,requires-vm'
- DRUPAL_CORE_VERSION=default PHPUNIT_GROUP='drupal' PHPUNIT_EXCLUDE_GROUP='long,requires-vm'
- DRUPAL_CORE_VERSION=$DRUPAL_CORE_HEAD
matrix:
fast_finish: true
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.console"
- "$HOME/.drush/cache"
- "$HOME/.nvm"
- "/tmp/blt-sandbox-instance/.rules"
services:
- mysql
- xvfb
addons:
chrome: stable
before_install:
# Exit build early if only documentation was changed in a Pull Request.
- source ${BLT_DIR}/scripts/travis/exit_early
- phpenv config-rm xdebug.ini
- phpenv config-add travis.php.ini
- composer validate --no-check-all --ansi
- composer install
install:
- source ${BLT_DIR}/scripts/travis/setup_environment
# Create extra dbs for multisite testing.
- mysql -u root -e "CREATE DATABASE drupal2; GRANT ALL ON drupal2.* TO 'drupal'@'localhost';"
- mysql -u root -e "CREATE DATABASE drupal3; GRANT ALL ON drupal3.* TO 'drupal'@'localhost';"
- mysql -u root -e "CREATE DATABASE drupal4; GRANT ALL ON drupal4.* TO 'drupal'@'localhost';"
script:
- ${BLT_DIR}/vendor/bin/robo release:test