forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 2.85 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
# Configuration file for unit test runner at http://travis-ci.org/#!/drush-ops/drush
# whitelist
branches:
only:
- master
- 7.x
- 6.x
- 5.x
language: php
php:
# See master-fulltest branch for broader PHP version testing.
- 5.5
# http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
env:
matrix:
#D7
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--group=make
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--group=base
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--group=commands
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--group=pm
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--group=quick-drupal
- UNISH_DRUPAL_MAJOR_VERSION=7 PHPUNIT_ARGS=--exclude-group=base,make,commands,pm,quick-drupal
#D8
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--group=make
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--group=base
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--group=commands
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--group=pm
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--group=quick-drupal
- UNISH_DRUPAL_MAJOR_VERSION=8 PHPUNIT_ARGS=--exclude-group=base,make,commands,pm,quick-drupal TEST_CHILDREN="drush-ops/config-extra"
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--group=make
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--group=base
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--group=commands
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--group=pm
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--group=quick-drupal
# - UNISH_DB_URL=sqlite://none/of/this/matters PHPUNIT_ARGS=--exclude-group=base,make,commands,pm,quick-drupal
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--group=make
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--group=base
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--group=commands
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--group=pm
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--group=quick-drupal
# - UNISH_DB_URL=pgsql://postgres:@localhost PHPUNIT_ARGS=--exclude-group=base,make,commands,pm,quick-drupal
global:
- secure: VfYokT2CchfuBRJp9/gSwfVGPfsVfkZdDVEuNWEqxww3z4vq+5aLKqoCtPL54E5EIMjhyCE3GVo+biG35Gab1KOVgUs8zD1hAUWA1FPKfMFhoPDfI3ZJC2rX2T1iWK4ZR90pBtcPzS+2OObzTYz8go0PfeSTT6eq69Na1KcNLaE=
- UNISH_NO_TIMEOUTS=y
- UNISH_DB_URL=mysql://root:@127.0.0.1
before_install: travis_retry composer selfupdate
install: travis_retry composer install --no-interaction
before_script:
- echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
- export UNISH_DRUSH="${PWD}/drush"
script: ${PWD}/unish.sh $PHPUNIT_ARGS
# Background: https://github.com/drush-ops/drush/pull/1426
after_success: ${PWD}/tests/testChildren.sh