<commit_before>language: php

php:
  - 5.5
  - 5.6
  - 7.0

sudo: false

cache:
  directories:
    - laravel
install:
  # specify the laravel service providers to insert
  - export PACKAGE_PROVIDER="
    Froiden\\\\RestAPI\\\\Providers\\\\ApiServiceProvider::class"
  - export FACADES="
    'ApiRoute' => Froiden\\\\RestAPI\\\\Facades\\\\ApiRoute::class"
  - export DB_HOST="localhost"
  - export DB_DATABASE="homestead_test"
  - export DB_USERNAME="root"
  - export DB_PASSWORD=""
  #specify the package to test
  - export PACKAGE_NAME=froiden/laravel-rest-api
  #run the setup script
  - curl -s https://raw.githubusercontent.com/froiden/laravel-rest-api/master/setup.sh | bash
  - mysql -e 'create database homestead_test;'

services: mysql

script:
  - cd laravel/laravel-rest-api
  - ../vendor/bin/phpunit<commit_msg>Chore: fixing travis CI issues<commit_after>language: php

php:
  - 5.5
  - 5.6
  - 7.0

sudo: false

cache:
  directories:
    - laravel
install:
  # specify the laravel service providers to insert
  - export PACKAGE_PROVIDER="
    Froiden\\\\RestAPI\\\\Providers\\\\ApiServiceProvider::class"
  - export FACADES="
    'ApiRoute' => Froiden\\\\RestAPI\\\\Facades\\\\ApiRoute::class"
  - export DB_HOST="localhost"
  - export DB_DATABASE="homestead_test"
  - export DB_USERNAME="root"
  - export DB_PASSWORD=""
  #specify the package to test
  - export PACKAGE_NAME=froiden/laravel-rest-api
  #run the setup script
  - curl -s https://raw.githubusercontent.com/froiden/laravel-rest-api/master/setup.sh | bash
  - mysql -e 'create database homestead_test;'
  - mysql -e "SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));"

services: mysql

script:
  - cd laravel/laravel-rest-api
  - ../vendor/bin/phpunit
{'fraction_non_alphanumeric': 0.13885714285714285, 'fraction_numerical': 0.006857142857142857, 'mean_word_length': 3.2916666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7001976', 'n_tokens_mistral': 660, 'n_tokens_neox': 618, 'n_words': 129}