<commit_before>sudo: enabled
language: php
php:
- 5.6
- 7.1
- hhvm
- nightly
matrix:
  allow_failures:
  - php: hhvm
  - php: nightly
  fast_finish: true
addons:
- ssh_know_hosts:
  - "$host_server_prod_rhs"
apt:
   packages:
    - sshpass
services:
- mysql
before_install:
- openssl aes-256-cbc -K $encrypted_f26652362650_key -iv $encrypted_f26652362650_iv
  -in deploy_rsa.enc -out deploy_rsa -d
- mysql -e 'CREATE DATABASE IF NOT EXISTS rhs_test;'
- pwd
- ls -la
- cp tests/wordpress-tests-lib/wp-tests-config-sample.php tests/wordpress-tests-lib/wp-tests-config.php
- sudo apt-get install sshpass 

before script: 
install:
- composer install
script: "./run-tests.sh"
after_success:
- eval "$(ssh-agent -s)"
- chmod 600 deploy_rsa
- ssh-add deploy_rsa
- echo -e "Host  $host_server_prod_rhs\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
#- sudo sshpass -p '$pass_user_server_prod_rhs'  ssh $user_server_prod_rhs@$host_server_prod_rhs  'ls' #'sh $path_deploy_server_prod_rhs/wp-rhs/deploy.sh'"


deploy:<commit_msg>Melhor setup do composer para uso em producao<commit_after>sudo: enabled
language: php
php:
- 5.6
- 7.1
- hhvm
- nightly
matrix:
  allow_failures:
  - php: hhvm
  - php: nightly
  fast_finish: true
addons:
- ssh_know_hosts:
  - "$host_server_prod_rhs"
apt:
   packages:
    - sshpass
services:
- mysql
before_install:
- openssl aes-256-cbc -K $encrypted_f26652362650_key -iv $encrypted_f26652362650_iv
  -in deploy_rsa.enc -out deploy_rsa -d
- mysql -e 'CREATE DATABASE IF NOT EXISTS rhs_test;'
- pwd
- ls -la
- cp tests/wordpress-tests-lib/wp-tests-config-sample.php tests/wordpress-tests-lib/wp-tests-config.php
- sudo apt-get install sshpass 

before script: 
install:
- composer install --no-dev
script: "./run-tests.sh"
after_success:
- eval "$(ssh-agent -s)"
- chmod 600 deploy_rsa
- ssh-add deploy_rsa
- echo -e "Host  $host_server_prod_rhs\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
#- sudo sshpass -p '$pass_user_server_prod_rhs'  ssh $user_server_prod_rhs@$host_server_prod_rhs  'ls' #'sh $path_deploy_server_prod_rhs/wp-rhs/deploy.sh'"


deploy:
{'fraction_non_alphanumeric': 0.122537241710716, 'fraction_numerical': 0.030754444978375782, 'mean_word_length': 3.933649289099526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3540102', 'n_tokens_mistral': 916, 'n_tokens_neox': 839, 'n_words': 181}