<commit_before>version: 2

defaults: &defaults
  working_directory: ~/project/ethereumjs-vm
  docker:
    - image: circleci/node:8-browsers
restore_node_modules: &restore_node_modules
  restore_cache:
    name: Restore node_modules cache
    keys:
      - v1-node-{{ .Branch }}-{{ checksum "package.json" }}
      - v1-node-{{ checksum "package.json" }}
jobs:
  install:
    <<: *defaults
    steps:
      - checkout
      - *restore_node_modules
      - run:
          name: npm install
          command: npm install
      - save_cache:
          name: Save node_modules cache
          key: v1-node-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
            - node_modules/
      - persist_to_workspace:
          root: ~/project
          paths:
            - ethereumjs-vm/
  lint:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: Lint
          command: npm run lint
  test_api:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testAPI
          command: npm run testAPI
  test_api_browser:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testAPI:browser
          command: npm run testAPI:browser
  test_state_byzantium:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateByzantium
          command: npm run testStateByzantium
  test_state_constantinople:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateConstantinople
          command: npm run testStateConstantinople
  test_state_petersburg:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStatePetersburg
          command: npm run testStatePetersburg
  test_state_istanbul:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateIstanbul
          command: npm run testStateIstanbul
  test_blockchain:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testBlockchain
          command: npm run testBlockchain
  test_blockchain_petersburg:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testBlockchainPetersburg
          command: npm run testBlockchainPetersburg
  coveralls:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: coveralls
          command: npm run coveralls
workflows:
  version: 2
  install-lint-test:
    jobs:
      - install
      - lint:
          requires:
            - install
      - test_api:
          requires:
            - install
      - test_api_browser:
          requires:
            - install
      - test_state_byzantium:
          requires:
            - install
      - test_state_constantinople:
          requires:
            - install
      - test_state_petersburg:
          requires:
            - install
      - test_blockchain:
          requires:
            - install
      - coveralls:
          requires:
            - install<commit_msg>Fix circleci config for istanbul tests<commit_after>version: 2

defaults: &defaults
  working_directory: ~/project/ethereumjs-vm
  docker:
    - image: circleci/node:8-browsers
restore_node_modules: &restore_node_modules
  restore_cache:
    name: Restore node_modules cache
    keys:
      - v1-node-{{ .Branch }}-{{ checksum "package.json" }}
      - v1-node-{{ checksum "package.json" }}
jobs:
  install:
    <<: *defaults
    steps:
      - checkout
      - *restore_node_modules
      - run:
          name: npm install
          command: npm install
      - save_cache:
          name: Save node_modules cache
          key: v1-node-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
            - node_modules/
      - persist_to_workspace:
          root: ~/project
          paths:
            - ethereumjs-vm/
  lint:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: Lint
          command: npm run lint
  test_api:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testAPI
          command: npm run testAPI
  test_api_browser:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testAPI:browser
          command: npm run testAPI:browser
  test_state_byzantium:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateByzantium
          command: npm run testStateByzantium
  test_state_constantinople:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateConstantinople
          command: npm run testStateConstantinople
  test_state_petersburg:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStatePetersburg
          command: npm run testStatePetersburg
  test_state_istanbul:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testStateIstanbul
          command: npm run testStateIstanbul
  test_blockchain:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testBlockchain
          command: npm run testBlockchain
  test_blockchain_petersburg:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: testBlockchainPetersburg
          command: npm run testBlockchainPetersburg
  coveralls:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - *restore_node_modules
      - run:
          name: coveralls
          command: npm run coveralls
workflows:
  version: 2
  install-lint-test:
    jobs:
      - install
      - lint:
          requires:
            - install
      - test_api:
          requires:
            - install
      - test_api_browser:
          requires:
            - install
      - test_state_byzantium:
          requires:
            - install
      - test_state_constantinople:
          requires:
            - install
      - test_state_petersburg:
          requires:
            - install
      - test_state_istanbul:
          requires:
            - install
      - test_blockchain:
          requires:
            - install
      - test_blockchain_petersburg:
          requires:
            - install
      - coveralls:
          requires:
            - install
{'fraction_non_alphanumeric': 0.08394657944944127, 'fraction_numerical': 0.001635322976287817, 'mean_word_length': 1.6061789772727273, 'pattern_counts': {'":': 0, '<': 47, '<?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': '5482363', 'n_tokens_mistral': 2211, 'n_tokens_neox': 2172, 'n_words': 458}