PHP Classes
elePHPant
Icontem

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: Just send code climate reports once
Disable Xdebug if running in a pull request
Remove duplicated phpunit command
Trying to make code coverage working
Allow xdebug to make code coverage working
Start to test against PHP 7.3
Date: 10 months ago
Size: 651 bytes
 

 

Contents

Class file image Download
language: php

php:
  - 7.1
  - 7.2
  - 7.3

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:
  - "./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