From 966ea9492c7fcd5f089137a15a642b33d2f3e422 Mon Sep 17 00:00:00 2001 From: Cyrille Date: Wed, 8 May 2019 12:04:12 +0100 Subject: [PATCH] CircleCI integration --- .circleci/config.yml | 17 +++++++++++++++++ .gitignore | 2 ++ clean.js | 1 + package.json | 3 ++- test.js | 1 + 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml create mode 100644 .gitignore create mode 100644 clean.js create mode 100644 test.js diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..017eb18 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +version: 2 +jobs: + test: + docker: + - image: circleci/node:10.13 + steps: + - checkout + - run: npm install + - run: npm run clean + - run: npm run test + - run: npm run clean + +workflows: + version: 2 + test: + jobs: + - test \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2fab40c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +/node-modules \ No newline at end of file diff --git a/clean.js b/clean.js new file mode 100644 index 0000000..4e01fc2 --- /dev/null +++ b/clean.js @@ -0,0 +1 @@ +console.log('Cleaning the project.'); diff --git a/package.json b/package.json index f60d9ec..95e340c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "S3 backed storage strategy for greenlock-express.js (and greenlock.js)", "main": "index.js", "scripts": { - "test": "node ./test.js" + "test": "node ./test.js", + "clean": "node ./clean.js" }, "repository": { "type": "git", diff --git a/test.js b/test.js new file mode 100644 index 0000000..3b30854 --- /dev/null +++ b/test.js @@ -0,0 +1 @@ +console.log('Testing the strategy.');