<commit_before>sudo: required

services:
  - docker

before_install:
  - docker-compose -v

install:
  - docker-compose run php composer install -n
  - docker-compose run -e AWS_ACCESS_KEY=$AWS_ODBC_KEY -e AWS_SECRET_KEY=$AWS_ODBC_SECRET php php docker/downloadOdbcDriver.php
  - docker-compose run -e AWS_ACCESS_KEY=$AWS_ACCESS_KEY -e AWS_SECRET_KEY=$AWS_SECRET_KEY -e AWS_S3_BUCKET=keboola-tests -e AWS_REGION=us-east-1 tests php ./tests/loadS3.php

script:
  >
  docker-compose run
  -e REDSHIFT_HOST=$REDSHIFT_HOST
  -e REDSHIFT_USER=$REDSHIFT_USER
  -e REDSHIFT_PORT=$REDSHIFT_PORT<commit_msg>ci - use php container to load fixtures to S3<commit_after>sudo: required

services:
  - docker

before_install:
  - docker-compose -v

install:
  - docker-compose run php composer install -n
  - docker-compose run -e AWS_ACCESS_KEY=$AWS_ODBC_KEY -e AWS_SECRET_KEY=$AWS_ODBC_SECRET php php docker/downloadOdbcDriver.php
  - docker-compose run -e AWS_ACCESS_KEY=$AWS_ACCESS_KEY -e AWS_SECRET_KEY=$AWS_SECRET_KEY -e AWS_S3_BUCKET=keboola-tests -e AWS_REGION=us-east-1 php php ./tests/loadS3.php

script:
  >
  docker-compose run
  -e REDSHIFT_HOST=$REDSHIFT_HOST
  -e REDSHIFT_USER=$REDSHIFT_USER
  -e REDSHIFT_PORT=$REDSHIFT_PORT
{'fraction_non_alphanumeric': 0.09053833605220228, 'fraction_numerical': 0.005709624796084829, 'mean_word_length': 4.602739726027397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2034369', 'n_tokens_mistral': 508, 'n_tokens_neox': 478, 'n_words': 97}