From b582ff57aee3f561f8e999d164378f73081fc327 Mon Sep 17 00:00:00 2001 From: Emily Bertwistle <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:45:21 +0100 Subject: [PATCH 01/15] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6554e1f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From 472d2949a2a811729455f0245abe778bb936bb52 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:58:26 +0100 Subject: [PATCH 02/15] ci test --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f..f4747bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,14 +9,14 @@ jobs: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: cimg/base:stable + - image: cimg/node:16 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + name: "serve" + command: "npx serve" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 9e1be6ca41b93eebbf4050d21625120332d8f3b3 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:59:30 +0100 Subject: [PATCH 03/15] ci test --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f4747bf..48f25d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: cimg/node:16 + - image: cimg/node:18.10.0 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: From 0ac871954fbfdde878035c5e2db4b345e3576b45 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:03:24 +0100 Subject: [PATCH 04/15] ci test --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48f25d3..aad9a24 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,10 @@ jobs: - checkout - run: name: "serve" - command: "npx serve" + command: + | "npx serve" + | "curl http://localhost:3000" + | "pkill -SIGQUIT serve" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 700b6e2dd61f23ce0ee2cebe3c7eec95126527d3 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:04:24 +0100 Subject: [PATCH 05/15] ci test --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index aad9a24..88aa7a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,9 +17,9 @@ jobs: - run: name: "serve" command: - | "npx serve" - | "curl http://localhost:3000" - | "pkill -SIGQUIT serve" + | npx serve + | curl http://localhost:3000 + | pkill -SIGQUIT serve # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From c5e5095d55f2ea17968a9a74095d30e0805c304b Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:05:07 +0100 Subject: [PATCH 06/15] ci test --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 88aa7a3..e7e0e3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,10 +16,10 @@ jobs: - checkout - run: name: "serve" - command: - | npx serve - | curl http://localhost:3000 - | pkill -SIGQUIT serve + command: | + npx serve + curl http://localhost:3000 + pkill -SIGQUIT serve # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From b834a53e1fbac3fd2132e9ad151228b14a187d12 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:09:54 +0100 Subject: [PATCH 07/15] ci test --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e7e0e3d..bf8f75e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,8 +18,11 @@ jobs: name: "serve" command: | npx serve + background: true + - run: + name: "test" + command: | curl http://localhost:3000 - pkill -SIGQUIT serve # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 4c3870a02fb420b5ca2cbabcabc0d3d242583dea Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:12:33 +0100 Subject: [PATCH 08/15] ci test --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bf8f75e..7d57e60 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: "test" command: | - curl http://localhost:3000 + curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 4c1cf79ede0c381e44bc25452f47809771805e53 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:13:46 +0100 Subject: [PATCH 09/15] ci test --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d57e60..ab56a63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,10 +19,10 @@ jobs: command: | npx serve background: true - - run: - name: "test" - command: | - curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 + # - run: + # name: "test" + # command: | + # curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 3f3fee3540c0107948a76cf3b82ee7a27547bece Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:40:59 +0100 Subject: [PATCH 10/15] ci test --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ab56a63..7d57e60 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,10 +19,10 @@ jobs: command: | npx serve background: true - # - run: - # name: "test" - # command: | - # curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 + - run: + name: "test" + command: | + curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 04f8acefb850761ff848214596953c618cb564a1 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:25:29 +0100 Subject: [PATCH 11/15] ci test --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d57e60..82b6539 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,8 +21,9 @@ jobs: background: true - run: name: "test" + wait-on: "http://localhost:3000" command: | - curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3000 + curl http://localhost:3000 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From c4fe04f748ab1b50c4f428f74a9c1cb2350b7776 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:26:33 +0100 Subject: [PATCH 12/15] ci test --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 82b6539..c33f92c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,7 @@ jobs: name: "test" wait-on: "http://localhost:3000" command: | - curl http://localhost:3000 + echo "hello" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From e319dfe08fffdfd231f09307115f09a2402e74a4 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:03:32 +0100 Subject: [PATCH 13/15] ci test again --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c33f92c..13137ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,13 +17,12 @@ jobs: - run: name: "serve" command: | - npx serve + npx serve -l 3001 background: true - run: name: "test" - wait-on: "http://localhost:3000" command: | - echo "hello" + "curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3001" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 8c9415c1915d52b8e7f525ea8075b4abb2a2b0e5 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:16:51 +0100 Subject: [PATCH 14/15] ci test again --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 13137ea..2ed68b1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: "test" command: | - "curl --retry-delay 5 --retry 10 --retry-connrefused http://localhost:3001" + wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 http://localhost:3001 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From f0321cf51222304608f0d5f6eeb4803eaddc8ce0 Mon Sep 17 00:00:00 2001 From: emilyb7 <17532458+emilyb7@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:17:35 +0100 Subject: [PATCH 15/15] ci test again --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ed68b1..7405d9c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,7 @@ jobs: name: "test" command: | wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 http://localhost:3001 + curl http://localhost:3001 # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows