b287ac840aeab56a3d151ffda3be01f8c3362cdc
[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 php:
12 #  See master-fulltest branch for broader PHP version testing.
13   - 5.6
14   - 7.0
15   - 7.2
16
17 # Cache Composer.
18 cache:
19   directories:
20     - $HOME/.composer/cache
21
22 # http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
23 sudo: false
24
25 env:
26   matrix:
27     - TEST_DIR=isolation ISOLATION_INSTALL='install --prefer-dist'
28     - TEST_DIR=isolation ISOLATION_INSTALL='update --prefer-dist --prefer-lowest'
29     - TEST_DIR=isolation ISOLATION_INSTALL='update --prefer-dist'
30   global:
31     # GitHub deploy
32     - secure: VfYokT2CchfuBRJp9/gSwfVGPfsVfkZdDVEuNWEqxww3z4vq+5aLKqoCtPL54E5EIMjhyCE3GVo+biG35Gab1KOVgUs8zD1hAUWA1FPKfMFhoPDfI3ZJC2rX2T1iWK4ZR90pBtcPzS+2OObzTYz8go0PfeSTT6eq69Na1KcNLaE=
33     - UNISH_NO_TIMEOUTS=y
34     - UNISH_DB_URL=mysql://root:@127.0.0.1
35     - UNISH_TMP=/tmp
36
37
38
39 before_install:
40   - echo 'mbstring.http_input = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
41   - echo 'mbstring.http_output = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
42   - echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
43
44 # Build a System-Under-Test.
45 install:
46   - composer -n --working-dir=${PWD}/$TEST_DIR $ISOLATION_INSTALL
47
48 before_script:
49   - phpenv config-rm xdebug.ini
50   - echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
51   # - echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
52
53 script:
54   - cd $TEST_DIR && phpunit
55
56 after_success:
57   # Publish updated API documentation on every push to the master branch
58   - git config --global user.email $GITHUB_USER_EMAIL
59   - git config --global user.name "Drush Documentation Bot"
60   - cd $TRAVIS_BUILD_DIR && build/scripts/publish-api-docs.sh
61   # Background: https://github.com/drush-ops/drush/pull/1426
62   #- ${PWD}/tests/testChildren.sh