"Fossies" - the Fresh Open Source Software Archive

Member "dav-4.0.3/.travis.yml" (10 Jan 2020, 1636 Bytes) of package /linux/www/dav-4.0.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for ".travis.yml": 4.0.2_vs_4.0.3.

    1 language: php
    2 sudo: required
    3 php:
    4   - 7.0
    5   - 7.1
    6   - 7.2
    7   - 7.3
    8 
    9 env:
   10   global:
   11     - SABRE_MYSQLUSER="root"
   12     - SABRE_MYSQLPASS=""
   13     - SABRE_MYSQLDSN="mysql:host=127.0.0.1;dbname=sabredav_test"
   14     - RUN_PHPSTAN="FALSE"
   15   matrix:
   16     - LOWEST_DEPS="" TEST_DEPS="" WITH_COVERAGE="--coverage-clover=coverage.xml"
   17     - LOWEST_DEPS="--prefer-lowest" TEST_DEPS="tests/Sabre/" $WITH_COVERAGE=""
   18 
   19 matrix:
   20   include:
   21     - name: 'PHPStan'
   22       php: 7.2
   23       env: RUN_PHPSTAN="TRUE"
   24     - name: 'Test with streaming propfind'
   25       php: 7.2
   26       env: RUN_TEST_WITH_STREAMING_PROPFIND="TRUE"
   27 
   28 services:
   29   - mysql
   30   - postgresql
   31 
   32 install:
   33   - if [ $RUN_PHPSTAN == "TRUE"  ]; then wget https://github.com/phpstan/phpstan/releases/download/0.11.8/phpstan.phar; fi
   34 
   35 before_script:
   36 #  - mysql -u root -h 127.0.0.1 sabredav_test -e 'SELECT VERSION();'
   37 #- mysql -u root -h 127.0.0.1 -e 'create database sabredav_test'
   38   - psql -c "create database sabredav_test" -U postgres
   39   - psql -c "create user sabredav with PASSWORD 'sabredav';GRANT ALL PRIVILEGES ON DATABASE sabredav_test TO sabredav" -U postgres
   40   - composer update --prefer-dist $LOWEST_DEPS
   41 
   42 addons:
   43   postgresql: "9.5"
   44 
   45 script:
   46   - if [ $RUN_PHPSTAN == "FALSE"  ]; then ./bin/phpunit --verbose --configuration tests/phpunit.xml.dist $WITH_COVERAGE $TEST_DEPS; fi
   47   - if [ $RUN_PHPSTAN == "FALSE"  ]; then rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi
   48   - if [ $RUN_PHPSTAN == "TRUE"  ]; then php phpstan.phar analyse -c phpstan.neon lib; fi
   49 
   50 after_success:
   51   - bash <(curl -s https://codecov.io/bash)
   52 
   53 cache:
   54   directories:
   55     - $HOME/.composer/cache