aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Feldmeier <konrad.feldmeier@brainbot.com>2016-03-01 20:36:18 +0800
committerKonrad Feldmeier <konrad.feldmeier@brainbot.com>2016-06-23 19:30:33 +0800
commit9cfb49f71e193d2ed95e43afe6eccf2578869cf1 (patch)
tree064f7bb46ef8c98f6acce0e8b8eac23c9c993238
parent99afe8f5aad7bca5d0f1b1685390a4dea32d73c3 (diff)
downloaddexon-tests-9cfb49f71e193d2ed95e43afe6eccf2578869cf1.tar.gz
dexon-tests-9cfb49f71e193d2ed95e43afe6eccf2578869cf1.tar.zst
dexon-tests-9cfb49f71e193d2ed95e43afe6eccf2578869cf1.zip
Add automated linting
In order to avoid issues like #105 trigger build
-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.