From a5f3adb2a860b0edcbeea70f87d058e7fe0eea84 Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Sun, 12 May 2019 23:10:54 +0200 Subject: [PATCH] Add circleci script. Validates the policy file according to the schema. --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7c7bdf5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,11 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:lts + steps: + - checkout + - run: | + sudo npm install -g ajv-cli + curl https://izens.net/schemas/policy.json > schema.json + ajv validate -s schema.json -d policy.json