<commit_before>machine:
  pre:
    - bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
    - source $HOME/.gvm/scripts/gvm; gvm install go1.5.1 --binary
  environment:
    IMPORT_PATH: "github.com/influxdb/kapacitor"

dependencies:
  pre:
    # setup ipv6
    - sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0

  override:
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      mkdir -p "$GOPATH/src/$IMPORT_PATH"
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      rsync -a --delete ./ "$GOPATH/src/$IMPORT_PATH/"

test:
  override:
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      make -C "$GOPATH/src/$IMPORT_PATH/" test

deployment:
  release:<commit_msg>tell circleci to blow cache<commit_after>machine:
  pre:
    - bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
    - source $HOME/.gvm/scripts/gvm; gvm install go1.5.1 --binary
  environment:
    IMPORT_PATH: "github.com/influxdb/kapacitor"

dependencies:
  pre:
    # setup ipv6
    - sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0

  override:
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      mkdir -p "$GOPATH/src/$IMPORT_PATH"
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      rsync -a --delete ./ "$GOPATH/src/$IMPORT_PATH/"
# Temp blow source cache
  post:
    - rm -rf ~/kapacitor/

test:
  override:
    - >
      source $HOME/.gvm/scripts/gvm;
      gvm use "go1.5.1";
      make -C "$GOPATH/src/$IMPORT_PATH/" test

deployment:
  release:
{'fraction_non_alphanumeric': 0.15362971299943726, 'fraction_numerical': 0.024760832864378166, 'mean_word_length': 2.4258188824662814, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3156739', 'n_tokens_mistral': 723, 'n_tokens_neox': 729, 'n_words': 127}