emsa16/comment

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
    - "7.0"
    - "7.1"
    - "7.2"
    - hhvm
    - nightly



sudo: false



git:
    submodules: false



addons:
    apt:
        packages:
            #- php-codesniffer
            #- phpmd
            #- shellcheck



matrix:
    allow_failures:
        #- php: "7.0"
        #- php: "7.1"
        - php: nightly
        - php: hhvm


env:
  global:
    - CC_TEST_REPORTER_ID=5c878564db8b30478c80b34d6a237675fd16fd7872877fbc4d90279f35ee4b9e
    # - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)


before_script:
    - make 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


script:
    - make check
    - make test

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


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


# notifications:
#     irc: "irc.freenode.org#dbwebb"
#     urls:
#       - https://webhooks.gitter.im/e/6e4660b0024de67de0af
#     on_success: change  # options: [always|never|change] default: always
#     on_failure: always  # options: [always|never|change] default: always
#     on_start: never     # options: [always|never|change] default: always