<commit_before>machine:
  pre:
    - sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0

  php:
    version: 7.1.0

  node:
    version: 8.2.0

  services:
    - mysql

dependencies:
  cache_directories:
    - ~/.composer/cache
  override:
    - composer install --no-interaction
    - npm config set registry http://registry.npmjs.org
    - npm install
    - npm run development

general:
  artifacts:
    - "tests/Browser/screenshots"
    - "tests/Browser/console"
    - "server.log"
    - "npm-debug.log"

test:
  pre:
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - "./vendor/laravel/dusk/bin/chromedriver-linux":
        background: true
    - php artisan migrate
    - php artisan passport:install
    - "php artisan serve":<commit_msg>Migrations are automatically run from the tests if needed<commit_after>machine:
  pre:
    - sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0

  php:
    version: 7.1.0

  node:
    version: 8.2.0

  services:
    - mysql

dependencies:
  cache_directories:
    - ~/.composer/cache
  override:
    - composer install --no-interaction
    - npm config set registry http://registry.npmjs.org
    - npm install
    - npm run development

general:
  artifacts:
    - "tests/Browser/screenshots"
    - "tests/Browser/console"
    - "server.log"
    - "npm-debug.log"

test:
  pre:
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - "./vendor/laravel/dusk/bin/chromedriver-linux":
        background: true
    - "php artisan serve":
{'fraction_non_alphanumeric': 0.1303926320891905, 'fraction_numerical': 0.010664081434803683, 'mean_word_length': 2.4457429048414023, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 7, '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': '5575487', 'n_tokens_mistral': 761, 'n_tokens_neox': 704, 'n_words': 163}