district09/php_package_dg-geopunt-geolocation

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false
language: php

php:
    - 7.4
    - 8.0
    - 8.1

before_install:
    # Update & configure composer.
    - composer self-update --2
    - composer --version
    - if [ "${GITHUB_TOKEN}" != "" ]; then composer config github-oauth.github.com ${GITHUB_TOKEN}; fi
    - if [ "${REPMAN_TOKEN}" != "" ]; then composer config --global --auth http-basic.digipolis.repo.repman.io token ${REPMAN_TOKEN}; fi

    # Get the CodeClimate test reporter.
    - 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 install -n --no-progress

script:
    - vendor/bin/grumphp run

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