<commit_before>box: wercker/golang

services:
  - garrow/postgresql9.3@0.0.13

# Build definition
build:
  # The steps that will be executed on build
  steps:
    # Sets the go workspace and places your package
    # at the right place in the workspace tree
    - setup-go-workspace:
        package_dir: $WERCKER_GIT_REPOSITORY

    # Gets the public dependencies
    - script:
        name: go get
        code: |
         go get -t ./...

    # Build the project
    - script:
        name: go install
        code: |
          go version
          go install ./...

    # Test the project
    - script:
        name: go test
        code: |
          export POSTGRES_DSN="user=$WERCKER_POSTGRESQL_USERNAME password=$<PASSWORD>PASSWORD host=$WERCKER_POSTGRESQL_HOST port=$WERCKER_POSTGRESQL_PORT dbname=$WERCKER_POSTGRESQL_DATABASE"
          go test ./...<commit_msg>Updated wercker build to utilize the docker stack.<commit_after>box: golang:1.6

services:
  - id: postgres:9.4
    env:
      POSTGRES_PASSWORD: password
      POSTGRES_USER: dbx

# Build definition
build:
  # The steps that will be executed on build
  steps:
    - setup-go-workspace

    # Gets the public dependencies
    - script:
        name: go get
        code: |
         go get -t ./...

    # Build the project
    - script:
        name: go install
        code: |
          go version
          go install ./...

    # Test the project
    - script:
        name: go test
        code: |
          export POSTGRES_DSN="user=dbx password=password host=$POSTGRES_PORT_5432_TCP_ADDR port=$POSTGRES_PORT_5432_TCP_PORT sslmode=disable dbname=dbx"
          go test ./...
{'fraction_non_alphanumeric': 0.08484848484848485, 'fraction_numerical': 0.01090909090909091, 'mean_word_length': 2.074487895716946, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3247664', 'n_tokens_mistral': 532, 'n_tokens_neox': 518, 'n_words': 146}