Skip to content

Commit

Permalink
Merge pull request #6 from yyolk/utility/sort-tags-script
Browse files Browse the repository at this point in the history
add travis.yml , sort tags script
  • Loading branch information
yyolk authored Mar 18, 2017
2 parents 1af8e4b + e8dbd51 commit 5f91333
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
addons:
apt:
packages:
- jq
language: node_js
node_js:
- node
script:
- npm run sort-tags.json
- npm test
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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`

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f91333

Please sign in to comment.