aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkonradkonrad <konradkonrad@users.noreply.github.com>2016-06-29 15:31:53 +0800
committerGitHub <noreply@github.com>2016-06-29 15:31:53 +0800
commit770aad9285de38c4db2e5f3ef0f6c928cb25d30f (patch)
tree7a3f56a8aef4c61eae6a250f1e9873d8f2a2fd0c
parent94fa530a0674dc695211609fc685c59f0ee660b9 (diff)
parent9cfb49f71e193d2ed95e43afe6eccf2578869cf1 (diff)
downloaddexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar.gz
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar.bz2
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar.lz
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar.xz
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.tar.zst
dexon-tests-770aad9285de38c4db2e5f3ef0f6c928cb25d30f.zip
Merge pull request #107 from konradkonrad/develop
Add automated JSON linting
-rw-r--r--.travis.yml8
-rw-r--r--README.md2
2 files changed, 9 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..e35fba889
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
+language: python
+python: 2.7
+sudo: false
+script:
+# won't fail, but print problems
+- find . -name "*.json" -exec echo {} \; -exec python -mjson.tool {} /dev/null \; 2>&1 |grep --before 1 "Expecting" | cat
+# will fail, if linting fails
+- find . -name "*.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null
diff --git a/README.md b/README.md
index 0f7dbe5a6..53b0759b7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-tests
+tests [![Build Status](https://travis-ci.org/ethereum/tests.svg?branch=develop)](https://travis-ci.org/ethereum/tests)
=====
Common tests for all clients to test against.