<commit_before>box: golang
# Build definition

# Mongodb service
services:
    - mongo

build:
  # The steps that will be executed on build
  steps:
    # Sets the go workspace and places the package
    # at the right place in the workspace tree
    - setup-go-workspace:
        package-dir: gost

    # Gets the dependencies
    - script:
        name: go get -v
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get -t ./...

    # Build the project
    - script:
        name: go build
        code: |
          go build -v ./...

    # Test the project. Also print the mongodb
    # connection environment variables
    - script:
        name: go test
        code: |
          go test -v ./...<commit_msg>Testing wercker configuration changes<commit_after>box: golang
# Build definition

# Mongodb service
services:
    - mongo

build:
  # The steps that will be executed on build
  steps:
    # Sets the go workspace and places the package
    # at the right place in the workspace tree
    - setup-go-workspace:
        package-dir: gost

    # Set gost environment variables
    - script:
        name: set env
        code: |
            export MONGODB_URL="localhost:27017"
            export GOST_TESTAPP_DB_NAME="gost_test_app_db"
            export GOST_TESTAPP_DB_CONN="$MONGODB_URL/$GOST_TESTAPP_DB_NAME"
            export GOST_TESTAPP_NAME="gost_test_app"
            export GOST_TESTAPP_INSTANCE="/gost-test/"
            export GOST_TESTAPP_HTTP="localhost:7500"

    - script:
        name: display env vars
        code: |
            env

    # Gets the dependencies
    - script:
        name: go get -v
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get -t ./...

    # Build the project
    - script:
        name: go build
        code: |
          go build -v ./...

    # Test the project. Also print the mongodb
    # connection environment variables
    - script:
        name: go test
        code: |
          go test -v ./...
{'fraction_non_alphanumeric': 0.0763923114834894, 'fraction_numerical': 0.004435682602267127, 'mean_word_length': 1.7102803738317758, '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': '2297711', 'n_tokens_mistral': 600, 'n_tokens_neox': 585, 'n_words': 195}