CORE-POS/IS4C

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

# keep verisions minimal to limit total
# builds on free service. politeness.
php:
    - "5.6"
    - "7.2"

services:
    - mysql
    - postgresql

sudo: false

branches:
    only:
        - master

addons:
    code_climate:
        repo_token: 461be60a44fc2293c80a05712a1aa18ff7d12effec9a806d7722435b12ea2bbe

# test both msyqli and PDO 
env:
    matrix:
        - DB_DRIVER=pdo_mysql
        - DB_DRIVER=mysqli

install:
    - sh tests/fannie/travis-init.sh
    - sh tests/pos/travis-init.sh
    - rm composer.json
    - rm composer.lock
    - composer init --name corepos/ci-env
    - composer require codeclimate/php-test-reporter johnkary/phpunit-speedtrap predis/predis
    - mkdir -p build/logs
    - npm install acorn

script:
    - phpunit -v --debug -d max_execution_time=0 -c phpunit.xml
    - sh tests/acorn.sh

after_script:
    - vendor/bin/test-reporter