travis: add filter to not test md changes

Fixes #1136
I propose 2 improvements:
1. use `--name-only` instead of `grep`
2. add dot to make regexp more precise

```sh
git diff $(git merge-base HEAD v2) --name-only | grep -v '\.md$' > /dev/null || (echo "Test skipped." && exit 0)
```