summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvmchale <>2017-11-13 08:24:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-11-13 08:24:00 (GMT)
commita3759f333ab821dfe359ab39acc9be04f5d57cfd (patch)
tree892d34f33f9d3e4be5eeb1510b2770dfb5dd1f23
parent1299105ed0e5648cef4c6ee1309ae52afa30177a (diff)
version 0.1.0.190.1.0.19
-rw-r--r--.travis.yml11
-rw-r--r--Justfile2
-rw-r--r--README.md12
-rw-r--r--sh/check11
-rw-r--r--tomlcheck.cabal3
5 files changed, 18 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index a65fa3e..46aa494 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,15 +50,7 @@ script:
- echo $BINPATH
- mv $BINPATH tomlcheck-$TARGET
- ls tomlcheck-$TARGET
- - |
- if [ `uname` = "Darwin" ]
- then
- echo 'skipping tomlcheck download...'
- else
- wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck
- chmod a+x tomlcheck
- ./tomlcheck --file data/sample.toml
- fi
+ - curl -sL https://raw.githubusercontent.com/vmchale/tomlcheck/master/sh/check | sh -s
deploy:
api_key:
@@ -71,4 +63,5 @@ deploy:
branches:
only:
+ - master
- /\d+\.\d+\.\d+\.\d+.*$/
diff --git a/Justfile b/Justfile
index efe933c..9f583a1 100644
--- a/Justfile
+++ b/Justfile
@@ -5,7 +5,7 @@ clean:
sn c .
next:
- @export VERSION=$(cat tomlcheck.cabal | grep -P -o '\d+\.\d+\.\d+\.\d+' tomlcheck.cabal | head -n1 | awk -F. '{$NF+=1; print $0}' | sed 's/ /\./g') && echo $VERSION && sed -i "2s/[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/$VERSION/" tomlcheck.cabal
+ @export VERSION=$(cat tomlcheck.cabal | grep -P -o '\d+\.\d+\.\d+\.\d+' tomlcheck.cabal | head -n1 | awk -F. '{$NF+=1; print $0}' | sed 's/ /\./g') && echo $VERSION && sed -i "2s/[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/$VERSION/" tomlcheck.cabal && sed -i "4,8s/[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/$VERSION/" sh/check
git commit -am "for release"
bench:
diff --git a/README.md b/README.md
index 06a6a14..a362735 100644
--- a/README.md
+++ b/README.md
@@ -29,16 +29,8 @@ Install [GHC](https://www.haskell.org/ghc/download.html) along with
### Travis
-A sample script for your `.travis.yml` file:
+Add the following your `.travis.yml` file to check a `.toml` file:
```yaml
-test:
- - |
- if [ `uname` = "Darwin" ]
- then
- echo 'skipping tomlcheck download...'
- else
- wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck
- chmod a+x tomlcheck
- ./tomlcheck --file data/sample.toml
+ - curl -sL https://raw.githubusercontent.com/vmchale/tomlcheck/master/sh/check | sh -s
```
diff --git a/sh/check b/sh/check
new file mode 100644
index 0000000..4a02b66
--- /dev/null
+++ b/sh/check
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+if [ "$(uname)" = "Darwin" ]
+then
+ wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.19/tomlcheck-x86_64-apple-darwin -O tomlcheck
+ chmod a+x tomlcheck
+ ./tomlcheck --file data/sample.toml
+else
+ wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.19/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck
+ chmod a+x tomlcheck
+ ./tomlcheck --file data/sample.toml
+fi
diff --git a/tomlcheck.cabal b/tomlcheck.cabal
index 8c5b39a..7bf63b1 100644
--- a/tomlcheck.cabal
+++ b/tomlcheck.cabal
@@ -1,5 +1,5 @@
name: tomlcheck
-version: 0.1.0.18
+version: 0.1.0.19
synopsis: Command-line tool to check syntax of TOML files
description: This is a command-line wrapper around htoml-megaparsec.
It is intended to be used as a syntax checker that can be
@@ -18,6 +18,7 @@ cabal-version: >=1.18
Data-files: .travis.yml
, appveyor.yml
, Justfile
+ , sh/check
Extra-doc-files: README.md
Flag optimize {