<commit_before>machine:
  services:
    - postgresql
  pre:
    - mkdir -p $HOME/.go_project/src/github.com/oursky
    - mv ourd $HOME/.go_project/src/github.com/oursky/
    - ln -s $HOME/.go_project/src/github.com/oursky/ourd .

dependencies:
  post:
    - >
      go get golang.org/x/tools/cmd/cover \
             github.com/golang/lint/golint \
             github.com/smartystreets/goconvey/convey \
             github.com/smartystreets/assertions \
             golang.org/x/tools/cmd/stringer
    - go install

test:
  override:
    - golint ./...
    - go generate ./...
    - go test -cover ./...

database:
  post:
    - psql -c 'CREATE DATABASE ourd_test;' -U ubuntu<commit_msg>Setup cyclomatic complexity checking in CircleCI<commit_after>machine:
  services:
    - postgresql
  pre:
    - mkdir -p $HOME/.go_project/src/github.com/oursky
    - mv ourd $HOME/.go_project/src/github.com/oursky/
    - ln -s $HOME/.go_project/src/github.com/oursky/ourd .

dependencies:
  post:
    - >
      go get golang.org/x/tools/cmd/cover \
             github.com/golang/lint/golint \
             github.com/smartystreets/goconvey/convey \
             github.com/smartystreets/assertions \
             golang.org/x/tools/cmd/stringer \
             github.com/rickmak/gocyclo \
             github.com/oursky/gogocyclo

    - go install

test:
  override:
    - golint ./...
    - gocyclo -skip-godeps -over 15 . | gogocyclo
    - go generate ./...
    - go test -cover ./...

database:
  post:
    - psql -c 'CREATE DATABASE ourd_test;' -U ubuntu
{'fraction_non_alphanumeric': 0.13152804642166344, 'fraction_numerical': 0.0012894906511927789, 'mean_word_length': 1.8014440433212997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6660970', 'n_tokens_mistral': 585, 'n_tokens_neox': 548, 'n_words': 93}