<commit_before>box: wercker/php
build:
  steps:
    - script:
        name: Install and check dependencies
        code: |-
            composer install --no-interaction --no-dev
    - script:
        name: Serve application for integration tests
        code: php -S localhost:8000 >> /dev/null &
    - script:
        name: PHPUnit integration tests
        code: phpunit --configuration phpunit.xml
deploy:
  steps:
    - add-to-known_hosts:
        hostname: zahymaka.webfactional.com
    - script:
        name: Make .SSH directory
        code: mkdir -p "$HOME/.ssh"
    - create-file:
        name: Write SSH private key
        filename: $HOME/.ssh/id_rsa
        overwrite: true
        content: $DEPLOY_KEY_PRIVATE
    - script:
        name: Set permissions for SSH private key
        code: |-
          chmod 0400 $HOME/.ssh/id_rsa
    - create-file:
        name: Write SSH public key
        filename: $HOME/.ssh/id_rsa.pub
        overwrite: true
        content: $DEPLOY_KEY_PUBLIC
    - script:
        name: Set permissions for SSH public key
        code: |-
          chmod 0400 $HOME/.ssh/id_rsa.pub
    - script:
        name: Login to server, update code and exit
        code: |-
          ssh <EMAIL> "cd ~/webapps/csci577 && git pull && wget -r https://getcomposer.org/composer.phar && php54 composer.phar install && exit"<commit_msg>Use local composer.phar instead of downloading.<commit_after>box: wercker/php
build:
  steps:
    - script:
        name: Install and check dependencies
        code: |-
            composer install --no-interaction --no-dev
    - script:
        name: Serve application for integration tests
        code: php -S localhost:8000 >> /dev/null &
    - script:
        name: PHPUnit integration tests
        code: phpunit --configuration phpunit.xml
deploy:
  steps:
    - add-to-known_hosts:
        hostname: zahymaka.webfactional.com
    - script:
        name: Make .SSH directory
        code: mkdir -p "$HOME/.ssh"
    - create-file:
        name: Write SSH private key
        filename: $HOME/.ssh/id_rsa
        overwrite: true
        content: $DEPLOY_KEY_PRIVATE
    - script:
        name: Set permissions for SSH private key
        code: |-
          chmod 0400 $HOME/.ssh/id_rsa
    - create-file:
        name: Write SSH public key
        filename: $HOME/.ssh/id_rsa.pub
        overwrite: true
        content: $DEPLOY_KEY_PUBLIC
    - script:
        name: Set permissions for SSH public key
        code: |-
          chmod 0400 $HOME/.ssh/id_rsa.pub
    - script:
        name: Login to server, update code and exit
        code: |-
          ssh <EMAIL>.<EMAIL> "cd ~/webapps/csci577 && git pull && php54 ~/composer.phar install && exit"
{'fraction_non_alphanumeric': 0.09716599190283401, 'fraction_numerical': 0.012513801987486198, 'mean_word_length': 1.8914893617021276, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6382033', 'n_tokens_mistral': 889, 'n_tokens_neox': 821, 'n_words': 243}