-
Notifications
You must be signed in to change notification settings - Fork 108
/
.travis.yml
42 lines (42 loc) · 1.48 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
language: php
php:
- 7.2
sudo: false
services:
- mysql
addons:
chrome: stable
apt:
packages:
- chromium-browser
- chromium-chromedriver
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache/repo
env:
global:
- SIMPLETEST_DB=mysql://root:@127.0.0.1:3306/db
- SIMPLETEST_BASE_URL=http://127.0.0.1:8080
- SYMFONY_DEPRECATIONS_HELPER=weak
- MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless", "--no-sandbox"]}}, "http://127.0.0.1:9515"]'
before_install:
# Composer 1.x is required for now due to civicrm/composer-downloads-plugin
- composer self-update --1
install:
# Webform 5.x is for ^8.0.0; Webform 6.x is for Drupal 9.x.x
- COMPOSER_MEMORY_LIMIT=-1 composer create-project drupal/recommended-project:^8.9 $TRAVIS_BUILD_DIR/../drupal --no-interaction
- cd $TRAVIS_BUILD_DIR/../drupal
- composer config extra.enable-patching true
- composer config repositories.0 path $TRAVIS_BUILD_DIR
- composer config repositories.1 composer https://packages.drupal.org/8
- COMPOSER_MEMORY_LIMIT=-1 composer require --dev drupal/core-dev-pinned:^8.9
- COMPOSER_MEMORY_LIMIT=-1 composer require civicrm/civicrm-asset-plugin:'~1.1' civicrm/civicrm-{core,packages}:'~5.29' drupal/webform_civicrm *@dev
before_script:
- cd web
- php -S 127.0.0.1:8080 &
- chromedriver &
script:
- ../vendor/bin/phpunit -c core modules/contrib/webform_civicrm
notifications:
email: false