From 3a8ad155f49191585170868112cc2a2285b4475d Mon Sep 17 00:00:00 2001 From: mmelcot Date: Sun, 15 Mar 2020 23:39:02 +0100 Subject: [PATCH 1/3] Add .circleci/config.yml --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..01c267c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,13 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 +# Use a package of configuration called an orb. +orbs: + # Declare a dependency on the welcome-orb + welcome: circleci/welcome-orb@0.4.1 +# Orchestrate or schedule a set of jobs +workflows: + # Name the workflow "welcome" + welcome: + # Run the welcome/run job in its own container + jobs: + - welcome/run \ No newline at end of file From 62144fcfa589e5a9d622f597dfcdd1d4b8583ee0 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 15 Mar 2020 23:43:52 +0100 Subject: [PATCH 2/3] CircleCI --- .circleci/config.yml | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 01c267c..a526fd4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,13 +1,28 @@ # Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference -version: 2.1 -# Use a package of configuration called an orb. -orbs: - # Declare a dependency on the welcome-orb - welcome: circleci/welcome-orb@0.4.1 -# Orchestrate or schedule a set of jobs -workflows: - # Name the workflow "welcome" - welcome: - # Run the welcome/run job in its own container - jobs: - - welcome/run \ No newline at end of file +version: 2 +jobs: + build: + docker: + - image: circleci/node:6 + steps: + - checkout + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Setup Dependencies + command: npm install + - run: + name: Setup Code Climate test-reporter + command: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: # run tests + name: Run Test and Coverage + command: | + ./cc-test-reporter before-build + npm test -- --coverage + ./cc-test-reporter after-build --exit-code $? From eb01f4bda4944f93739583e327e10840a7a79067 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 22 Mar 2020 00:21:14 +0100 Subject: [PATCH 3/3] Modify README --- README.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.txt b/README.txt index 746b8f9..53a5750 100644 --- a/README.txt +++ b/README.txt @@ -1 +1,3 @@ Just a test + +Just another test