From a5499928e393a4b2abe4bb66b07e1bd3e94a1377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Y=C3=B8lk=20Chiocchi?= Date: Sat, 18 Mar 2017 16:56:51 -0500 Subject: [PATCH 1/5] add utility script in package.json to sort tags.json using jq --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e06be3a..83b5862 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Schema to ignore CloudFormation YAML local tags while parsing or dumping", "main": "index.js", "scripts": { - "test": "node test.js" + "test": "node test.js", + "sort-tags.json": "command -v jq >/dev/null 2>&1 &&(jq -S '' tags.json )>tags.sorted.json&&mv tags.sorted.json tags.json || { echo 'jq is not install or not in $PATH' >&2; exit 0; }" }, "repository": { "type": "git", From e4100d99c979c69db2f00cb46e2c10add751ff09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Y=C3=B8lk=20Chiocchi?= Date: Sat, 18 Mar 2017 17:03:13 -0500 Subject: [PATCH 2/5] add .travis.yml , refs #5 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2197832 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "node" From 917f41f14ecd6475267d7c259057ae946800a9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Y=C3=B8lk=20Chiocchi?= Date: Sat, 18 Mar 2017 17:10:08 -0500 Subject: [PATCH 3/5] add npm publish to .travis.yml , refs #5 --- .travis.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2197832..0b4f515 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,17 @@ language: node_js node_js: - - "node" +- node +deploy: + - provider: releases + api_key: + secure: qDDeUsNGQ0fsRqafAAD70xinUdxQeA1bnO2xlwtkoj6fHJ5L9+zRQVa4tJ6H3zAiq4G9MNQxkXZ+AXAnJRmoEMTm5qasfMQ54vyUL/V7KvaNf9j0dIXmBDHH/K22LkeJIHgXj195ahjzqbMqxDBMtmhF7hUi3EKyQkqeRgMMh80YtdPBYwgmcbPYHBv60RrQDT+XfglxkqlCIGFYNYdvkXyk9O16W1s8reC6Uju6zG+qAKAXsX8jXTHZiC2DmoAMLovb+MXw2P4Vqn9NWUVjXCXtm5CBa2dMUut13WfoAVRGTAcVfzkxsV3mHNDbcYMg7J8lTpUVWNAhAmZoN2E3tJvdOU095V21+I8LQ+jKfBaY8OmXEqF7D+gzn3DzRShZ3xIv1u4f2UTsdTFITj2KqIM2jMb4JbYCAABza6q3fPOrfrSy/Yrd5hluDkNGOWOmRPPAZjrdUh5MwzpkszHqoaN3oyI4mh3oZHme2n3kwC5jCzsEDnUTOiBlw/48/PbW46w1dQ4WnSzwxg4Z4K9PwYbs+C9gCZMyEqI7ZQ1v1x/llg4gyY7LW1NTW5AtQRCbi8ercOaj9r1CaWzL6FwdRjlyIGVIRGDq9QtB8pQFHtgDOoXikbwm/3OZtTpaFB7wQ/uHNIyynh+jccBC9h+bfRhhhKOiBpqk2Yps/X4qdNM= + file: tags.json + on: + tags: true + repo: yyolk/cloudformation-js-yaml-schema + - provider: npm + api_key: + secure: IhnsUekHJkVe4PxZMtnHJIk22gsbBHjxrnVf60ta27kLU1G5uMWL3q7GFndyVMUEGnUXq26NJB9tMSs6puYz4HitHVgJNNafxIB/kzijEI1o+PVSbV/cWXyyqSiEzfZOTX4xak9QB2C5/W28qBIRW6f9k/3eRB4m6xBMleb824PE2MIdUwA5d0mvVdezDz9L0T2iM1QKsQyPw0cQ9O7qY8R6p79kF6LlXyxueG3Kyhs9rnmUz4nXcAv1sk/atwiAhf0FWCjWMcoB33RwSUlMA4z45HnnfakAG2Nrjy8lNn0zOQipxQ3W7MkWyfRRJqBrOgx9T39XkB408mDpnNhMhHtYlxeUp95LhS+CRLhDoFySZDf971HteAVy7JQbRgSEG59OBisANYkBa3V0lPYqP9v9yvSvCm6QnuS1TPaqBBki6l4/yIwHzSMH3HxJCqyOL5+HHtX/ogqib7Fr4yCd0aFncC6k+CewiBULhkc8rxfs2D4fFKOydVhwe4CM2I4SUTcsFzg1+L/+d5kdozIeWt6FHfdnWeucC50ci3Q9vPUkzP+wKm2IcC1OVvOpVP8ab8rQQnUk1pPpFfcZLVRrypBOkyrVBnka+tt3e1LPyOvbNIMxgt2T3rKKBGiaHFMppqqYhcipl16ApAA/SxsBfckhCG3pbKygL2Pb1FnxHsk= + on: + tags: true + repo: yyolk/cloudformation-js-yaml-schema From 644560d5d549e038989d3dbf96bee0318d85d373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Y=C3=B8lk=20Chiocchi?= Date: Sat, 18 Mar 2017 17:21:59 -0500 Subject: [PATCH 4/5] add addons.apt.packages jq --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0b4f515..20d4751 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,13 @@ +addons: + apt: + packages: + - jq language: node_js node_js: -- node + - node +script: + - npm run sort-tags.json + - npm test deploy: - provider: releases api_key: From e8dbd51f7a23fa32a0fea64481a10b65498142fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Y=C3=B8lk=20Chiocchi?= Date: Sat, 18 Mar 2017 17:25:20 -0500 Subject: [PATCH 5/5] add build status tag to README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41e4429..5c0a5ef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# cloudformation-js-yaml-schema +# cloudformation-js-yaml-schema [![Build Status](https://travis-ci.org/yyolk/cloudformation-js-yaml-schema.svg?branch=master)](https://travis-ci.org/yyolk/cloudformation-js-yaml-schema) Schema to ignore CloudFormation YAML local tags while parsing, ie: `!Ref`, `!Base64`