File: .travis.yml

Recommend this page to a friend!
  Classes of Junior Grossi  >  Corcel (Laravel + WordPress)  >  .travis.yml  >  Download  
File: .travis.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Corcel (Laravel + WordPress)
Use the WordPress backend with any PHP application
Author: By
Last change: chore: use pcov for running test coverage
chore: use phpdbg for code coverage
chore: add php 7.4 to travis ci build
Date: 7 months ago
Size: 671 bytes
 

Contents

Class file image Download
language: php

php:
  - 7.2
  - 7.3
  - 7.4

dist: trusty

before_script:
  - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

install:
  - composer self-update
  - composer install

script:
  - pecl install pcov
  - ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_script:
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

For more information send a message to info at phpclasses dot org.