<commit_before>language: ruby
rvm:
  - 2.1

before_install:
  - nvm install 6.0
install:
  - gem install jekyll
  - gem install s3_website
script:
  - npm install
  - bundle install
  - npm run build && bundle exec jekyll build
after_success:
  - if [ -n "$ALGOLIA_API_KEY" ]; then bundle exec jekyll algolia push; fi
  - if [ -n "$secret_key" ] && [ "$TRAVIS_BRANCH" == "master" ]; then bucket_name=developer.avalara.com s3_website push; fi

deploy:
  # deploy none master to production
  - provider: s3
    access_key_id: $access_key
    secret_access_key: $secret_key
    bucket: "pr.developer.avalara.com"
    skip_cleanup: true
    region: us-west-2
    local_dir: _site
    acl: public_read
    on:
      all_branches: true
      condition: "$TRAVIS_BRANCH != master"<commit_msg>default branch pull<commit_after>language: ruby
rvm:
  - 2.1

before_install:
  - nvm install 6.0
install:
  - gem install jekyll
  - gem install s3_website
script:
  - npm install
  - bundle install
  - npm run build && bundle exec jekyll build
after_success:
  - if [ -n "$ALGOLIA_API_KEY" ]; then bundle exec jekyll algolia push; fi
  - if [ -n "$secret_key" ] && [ "$TRAVIS_BRANCH" == "master" ]; then bucket_name=developer.avalara.com s3_website push; fi
  - export s3_dir="$TRAVIS_BRANCH/$TRAVIS_REPO_SLUG"
  - echo $s3_dir

deploy:
  # deploy none master to production
  - provider: s3
    access_key_id: $access_key
    secret_access_key: $secret_key
    bucket: "pr.developer.avalara.com"
    skip_cleanup: true
    region: us-west-2
    local_dir: _site
    upload-dir: $s3_dir
    acl: public_read
    on:
      all_branches: true
      condition: "$TRAVIS_BRANCH != master"
{'fraction_non_alphanumeric': 0.1029940119760479, 'fraction_numerical': 0.011377245508982036, 'mean_word_length': 3.2519083969465647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4954724', 'n_tokens_mistral': 628, 'n_tokens_neox': 605, 'n_words': 159}