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.');