From 15ccd83273c49ca6f84749ed2daab8251cd95062 Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Mon, 9 Apr 2018 01:00:32 +0900 Subject: [PATCH 1/3] Migrate to CircleCI 2.0 fix fix fix fix --- .circleci/config.yml | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..1f9ba77d6e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,84 @@ +version: 2 + +defaults: &defaults + working_directory: ~/project/ethreumjs-vm + docker: + - image: circleci/node:8 +restore_node_modules: &restore_node_modules + restore_cache: + name: Restore node_modules cache + keys: + - v1-node-{{ .Branch }}-{{ checksum "package.json" }} + - v1-node-{{ .Branch }}- + - v1-node- +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: + - ethreumjs-vm/ + lint: + <<: *defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules + - run: + name: Lint + command: npm run lint + test_gas_limit: + <<: *defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules + - run: + name: testBlockchainBlockGasLimit + command: npm run testBlockchainBlockGasLimit + test_total_difficulty: + <<: *defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules + - run: + name: testBlockchainTotalDifficulty + command: npm run testBlockchainTotalDifficulty + test_state: + <<: *defaults + steps: + - attach_workspace: + at: ~/project + - *restore_node_modules + - run: + name: testState + command: npm run testState +workflows: + version: 2 + install-lint-test: + jobs: + - install + - lint: + requires: + - install + - test_gas_limit: + requires: + - install + - test_total_difficulty: + requires: + - install + - test_state: + requires: + - install \ No newline at end of file From 0fb71b01cd6f12b75c07c602513f4a91cde44eac Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Mon, 9 Apr 2018 07:18:30 +0900 Subject: [PATCH 2/3] Delete Circle 1.0 config --- circle.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 circle.yml diff --git a/circle.yml b/circle.yml deleted file mode 100644 index af6a55394c..0000000000 --- a/circle.yml +++ /dev/null @@ -1,10 +0,0 @@ -machine: - node: - version: 8.0.0 -dependencies: - pre: - - "npm rebuild" -test: - override: - - case $CIRCLE_NODE_INDEX in 0) npm run lint ;; 1) npm run testState ;; 2) npm run testBlockchainBlockGasLimit ;; 3) npm run testBlockchainTotalDifficulty ;; esac: - parallel: true From 1ca99bd1a8dd4bfd71328cf75fec36e03da868f1 Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Mon, 9 Apr 2018 07:27:46 +0900 Subject: [PATCH 3/3] Add newline at end of file --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1f9ba77d6e..e446795641 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,4 +81,4 @@ workflows: - install - test_state: requires: - - install \ No newline at end of file + - install