<commit_before>dist: trusty
sudo: false
language: go
go:
- 1.8

# add TF_CONSUL_TEST=1 to run consul tests
# they were causing timouts in travis
env:
  - CONSUL_VERSION=0.7.5 GOMAXPROCS=4

# Fetch consul for the backend and provider tests
before_install:
  - curl -sLo consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
  - unzip consul.zip
  - mkdir ~/bin
  - mv consul ~/bin
  - export PATH="~/bin:$PATH"

install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- go get github.com/kardianos/govendor
script:
- make vet vendor-status test
- GOOS=windows go build
branches:
  only:
  - master
notifications:
  irc:
    channels:
    - irc.freenode.org#terraform-tool
    skip_join: true
    use_notice: true
matrix:
  fast_finish: true
  allow_failures:
  - go: tip<commit_msg>updated travis.yml for builds on terraform examples<commit_after>language: generic

# establish environment variables
env:
  - TEST_DIR=examples/101-vm-simple-linux
#   global:
#     - GH_USER_NAME="travis-ci"
#     - GH_USER_EMAIL="<EMAIL>"
#     - GH_REPO="10thmagnitude/terraform"
#     # encrypted GH_TOKEN and AWS credentials
#     - secure: "<KEY>

# install terraform
before_deploy:
  - curl -fSL "https://releases.hashicorp.com/terraform/0.9.3/terraform_0.9.3_linux_amd64.zip" -o terraform.zip
  - sudo unzip terraform.zip -d /opt/terraform
  - sudo ln -s /opt/terraform/terraform /usr/bin/terraform
  - rm -f terraform.zip

# terraform apply
deploy:
  - provider: script
    skip_cleanup: true
    script: "./deploy.sh"
    on:
      repo: 10thmagnitude/terraform
      branch: 101-vm-simple-linux
{'fraction_non_alphanumeric': 0.10845986984815618, 'fraction_numerical': 0.01735357917570499, 'mean_word_length': 3.4781553398058254, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, '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': '3978567', 'n_tokens_mistral': 696, 'n_tokens_neox': 672, 'n_words': 165}