b2856901f5e1575b9c7fbc2430ebf06ac658be81
[yaffs-website] / vendor / drush / drush / .travis.yml
1 # Configuration file for unit test runner at http://travis-ci.org/#!/drush-ops/drush
2 branches:
3   only:
4     - master
5     - 8.x
6     - 7.x
7     - 6.x
8     - 5.x
9     - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
10 language: php
11
12 # Cache Composer.
13 cache:
14   directories:
15     - $HOME/.composer/cache
16
17 # http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
18 sudo: false
19
20 matrix:
21   include:
22     - php: 7.2
23       env: 'SCENARIO=isolation DEPENDENCIES=highest'
24     - php: 7.2
25       env: 'SCENARIO=isolation'
26     - php: 7.0.11
27       env: 'SCENARIO=isolation'
28     - php: 5.6
29       env: 'SCENARIO=isolation-phpunit4 DEPENDENCIES=lowest'
30     - php: 5.6
31       env: 'SCENARIO=isolation-phpunit4 DEPENDENCIES=lowest'
32
33 env:
34   global:
35     # GitHub deploy
36     - secure: VfYokT2CchfuBRJp9/gSwfVGPfsVfkZdDVEuNWEqxww3z4vq+5aLKqoCtPL54E5EIMjhyCE3GVo+biG35Gab1KOVgUs8zD1hAUWA1FPKfMFhoPDfI3ZJC2rX2T1iWK4ZR90pBtcPzS+2OObzTYz8go0PfeSTT6eq69Na1KcNLaE=
37     - UNISH_NO_TIMEOUTS=y
38     - UNISH_DB_URL=mysql://root:@127.0.0.1
39     - UNISH_TMP=/tmp
40
41
42
43 before_install:
44   - echo 'mbstring.http_input = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
45   - echo 'mbstring.http_output = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
46   - echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
47
48 # Build a System-Under-Test.
49 install:
50   - 'composer scenario "${SCENARIO}" "${DEPENDENCIES}"'
51
52 before_script:
53   - phpenv config-rm xdebug.ini
54   - echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
55   # - echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
56
57 script:
58   - composer unit
59
60 after_success:
61   # Publish updated API documentation on every push to the master branch
62   - git config --global user.email $GITHUB_USER_EMAIL
63   - git config --global user.name "Drush Documentation Bot"
64   - cd $TRAVIS_BUILD_DIR && build/scripts/publish-api-docs.sh
65   # Background: https://github.com/drush-ops/drush/pull/1426
66   #- ${PWD}/tests/testChildren.sh