<commit_before>language: php

services:
  - docker

cache:
  directories:
    - $HOME/.composer/cache

php:
  - '7.0'

install:
  - composer install --dev
  - mkdir -p build/logs
  - docker build -t pwred/vrata .
  - docker ps
  - docker run -d --name app -e APP_KEY=<KEY> -e GATEWAY_SERVICES="[]" -e GATEWAY_ROUTES="[]" pwred/vrata; sleep 10

script:
  - docker exec app /bin/sh -c "cd /home/app; cat /dev/null >> database/gateway.sqlite; export APP_ENV=testing; export DB_DATABASE=database/gateway.sqlite; php artisan migrate --database=sqlite"
  - docker exec app /bin/sh -c "cd /home/app; export APP_ENV=testing; ./vendor/bin/phpunit; phpdismod xdebug"
  - docker cp app:/home/app/build/logs/clover.xml ./build/logs/clover.xml
  - ./vendor/bin/test-reporter

after_success:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - docker commit app pwred/vrata
  - docker push pwred/vrata<commit_msg>r Travis config<commit_after>language: php

services:
  - docker

cache:
  directories:
    - $HOME/.composer/cache

php:
  - '7.0'

install:
  - composer install --dev
  - mkdir -p build/logs
  - docker build -t pwred/vrata .
  - docker ps
  - docker run -d --name app -e APP_KEY=<KEY> -e GATEWAY_SERVICES="[]" -e GATEWAY_ROUTES="[]" pwred/vrata; sleep 10

script:
  - docker exec app /bin/sh -c "cd /home/app; cat /dev/null >> database/gateway.sqlite; export APP_ENV=testing; export DB_DATABASE=database/gateway.sqlite; php artisan migrate --database=sqlite"
  - docker exec app /bin/sh -c "cd /home/app; touch storage/logs/laravel.log; export APP_ENV=testing; ./vendor/bin/phpunit; phpdismod xdebug; cat storage/logs/laravel.log"
  - docker cp app:/home/app/build/logs/clover.xml ./build/logs/clover.xml
  - ./vendor/bin/test-reporter

after_success:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - docker commit app pwred/vrata
  - docker push pwred/vrata
{'fraction_non_alphanumeric': 0.14330218068535824, 'fraction_numerical': 0.004153686396677051, 'mean_word_length': 3.3109619686800893, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '556512', 'n_tokens_mistral': 774, 'n_tokens_neox': 736, 'n_words': 175}