<commit_before>language: go
go: 1.4.2
sudo: false

env:
  global:
  - INTEGRATION_TESTS_DISABLED=1
  - GOPATH="$HOME/gopath"
  - PATH="$TRAVIS_BUILD_DIR/bin:$HOME/gopath/bin:$HOME/bin:$PATH"
  - UNAME="$(uname | tr '[:upper:]' '[:lower:]')"

addons:
  artifacts:
    paths:
    - ./build/$UNAME/amd64/travis-worker

install:
  - go get github.com/constabulary/gb/...

script:
  - make test
  - make test-race
  - git diff --exit-code || echo 'wat is goin on'
  - git diff --cached --exit-code || echo 'wat is goin on'
  - travis-worker --version
  - travis-worker -v
  - travis-worker --help
  - travis-worker -h
  - travis-worker --echo-config

# TODO: enable integration tests
# - AMQP_URI=amqp:// POOL_SIZE=1 BUILD_API_URI=http://localhost:3000/script PROVIDER_NAME=fake PROVIDER_CONFIG=happy QUEUE_NAME=builds.test travis-worker &
# - AMQP_URI=amqp:// go test -v ./test<commit_msg>Using full path for PATH<commit_after>language: go
go: 1.4.2
sudo: false

env:
  global:
  - INTEGRATION_TESTS_DISABLED=1
  - GOPATH="$HOME/gopath"
  - PATH="$HOME/gopath/src/github.com/travis-ci/worker/bin:$HOME/gopath/bin:$HOME/bin:$PATH"
  - UNAME="$(uname | tr '[:upper:]' '[:lower:]')"

addons:
  artifacts:
    paths:
    - ./build/$UNAME/amd64/travis-worker

install:
  - go get github.com/constabulary/gb/...

script:
  - make test
  - make test-race
  - git diff --exit-code || echo 'wat is goin on'
  - git diff --cached --exit-code || echo 'wat is goin on'
  - travis-worker --version
  - travis-worker -v
  - travis-worker --help
  - travis-worker -h
  - travis-worker --echo-config

# TODO: enable integration tests
# - AMQP_URI=amqp:// POOL_SIZE=1 BUILD_API_URI=http://localhost:3000/script PROVIDER_NAME=fake PROVIDER_CONFIG=happy QUEUE_NAME=builds.test travis-worker &
# - AMQP_URI=amqp:// go test -v ./test
{'fraction_non_alphanumeric': 0.16316371681415928, 'fraction_numerical': 0.012168141592920354, 'mean_word_length': 3.1682027649769586, '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': '5576395', 'n_tokens_mistral': 736, 'n_tokens_neox': 695, 'n_words': 145}