<commit_before>workspace:
  base: /go
  path: src/github.com/belak/go-seabird

pipeline:
  test:
    image: golang:1.10
    commands:
      # Test first
      - go get -t ./...
      - go test -v ./...
      - cd ./cmd/seabird && go build
      # Linting second
      - go get github.com/alecthomas/gometalinter
      - gometalinter --install
      - gometalinter ./... --fast -D dupl -D gas -D gconst --cyclo-over 15

  docker:
    image: plugins/docker
    repo: belak/seabird
    dockerfile: Dockerfile
    tag: latest
    secrets: [ docker_username, docker_password ]
    when:
      branch: master
      event: push

<commit_msg>Run tests and linting concurrently<commit_after>workspace:
  base: /go
  path: src/github.com/belak/go-seabird

pipeline:
  test:
    group: test
    image: golang:1.10
    commands:
      - go get -t ./...
      - go test -v ./...
      - cd ./cmd/seabird && go build

  lint:
    group: test
    image: golang:1.10
    commands:
      - go get github.com/alecthomas/gometalinter
      - gometalinter --install
      - gometalinter ./... --fast -D dupl -D gas -D gconst --cyclo-over 15

  docker:
    image: plugins/docker
    repo: belak/seabird
    dockerfile: Dockerfile
    tag: latest
    secrets: [ docker_username, docker_password ]
    when:
      branch: master
      event: push


{'fraction_non_alphanumeric': 0.1169811320754717, 'fraction_numerical': 0.009811320754716982, 'mean_word_length': 1.9015317286652078, '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': '3155903', 'n_tokens_mistral': 484, 'n_tokens_neox': 459, 'n_words': 120}