P4BGroup/ldap-jwt-authentication

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
# Config file for https://travis-ci.org/

language: php

# Define the php versions against we want to test our code
php:
  - 7.2
  - 7.3

# Note: Code coverage requires php-xDebug extension enabled on CI server

install:
  - 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
  - travis_retry composer install --no-interaction --no-suggest

# Testing the app (see phpunit.xml) for configs, generating Code Coverage report
script:
  - composer test -- --coverage-clover=coverage.xml

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

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

#after_failure:

# Monitor only these branches
branches:
  only:
    - master
    - develop