<commit_before>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.7
      - image: neo4j:3.1.0-enterprise
        environment:
          NEO4J_AUTH: none
          NEO4J_HEAP_MEMORY: 256
          NEO4J_CACHE_MEMORY: 256M

    working_directory: /go/src/github.com/Financial-Times/content-rw-neo4j
    environment:
      CIRCLE_TEST_REPORTS: /tmp/test-reports
      CIRCLE_ARTIFACTS: /tmp/artifacts
      NEO4J_TEST_URL: "http://localhost:7474/db/data/"

    steps:
      - checkout
      - run: |
          go get -u github.com/kardianos/govendor
      - run: |
          go get -t -d -v ./...
      - run: |
          go build -v
      - run: |
          wget --retry-connrefused --no-check-certificate -T 60 $NEO4J_TEST_URL; curl $NEO4J_TEST_URL
      - run: |
          go get -u github.com/jstemmer/go-junit-report
          go get -u github.com/mattn/goveralls
          wget https://raw.githubusercontent.com/Financial-Times/cookiecutter-upp-golang/master/coverage.sh && chmod +x coverage.sh
      - run: |
          mkdir -p $CIRCLE_TEST_REPORTS/golang
          mkdir -p $CIRCLE_ARTIFACTS
          govendor test -race -v +local | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml
          ./coverage.sh
      - run: |
          goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN

      - store_test_results:
          path: /tmp/test-reports

      - store_artifacts:
          path: /tmp/artifacts
          destination: build
<commit_msg>Updated circe 2 configuration<commit_after>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.8
      - image: neo4j:3.1.0-enterprise
        environment:
          NEO4J_AUTH: none
          NEO4J_HEAP_MEMORY: 256
          NEO4J_CACHE_MEMORY: 256M

    working_directory: /go/src/github.com/Financial-Times/content-rw-neo4j
    environment:
      CIRCLE_TEST_REPORTS: /tmp/test-reports
      CIRCLE_ARTIFACTS: /tmp/artifacts
      NEO4J_TEST_URL: "http://localhost:7474/db/data/"

    steps:
      - checkout
      - run: |
          go get -u github.com/kardianos/govendor
      - run: |
          govendor sync
      - run: |
          govendor build -v
      - run: |
          wget --retry-connrefused --no-check-certificate -T 60 $NEO4J_TEST_URL; curl $NEO4J_TEST_URL
      - run: |
          go get -u github.com/jstemmer/go-junit-report
          go get -u github.com/mattn/goveralls
          wget https://raw.githubusercontent.com/Financial-Times/cookiecutter-upp-golang/master/coverage.sh && chmod +x coverage.sh
      - run: |
          mkdir -p $CIRCLE_TEST_REPORTS/golang
          mkdir -p $CIRCLE_ARTIFACTS
          govendor test -race -v +local | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml
          ./coverage.sh
      - run: |
          goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN

      - store_test_results:
          path: /tmp/test-reports

      - store_artifacts:
          path: /tmp/artifacts
          destination: build
  docker_build:
    working_directory: /content-rw-neo4j
    docker:
      - image: docker:1.12.6-git
    steps:
      - checkout
      - setup_docker_engine
      - run:
          name: Build Dockerfile
          command: docker build .

workflows:
  version: 2
  tests_and_docker:
    jobs:
      - build
      - docker_build:
          requires:
            - build
{'fraction_non_alphanumeric': 0.1026759744037231, 'fraction_numerical': 0.01716114019778941, 'mean_word_length': 1.9168787107718406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1833927', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1186, 'n_words': 211}