diff --git a/.travis.yml b/.travis.yml index c5f56b3..5a45f06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ matrix: before_script: - $pip_install flake8 -- go get github.com/urfave/gfmrun/... +- go get github.com/urfave/gfmrun/... || true - go get golang.org/x/tools/... || true - if [ ! -f node_modules/.bin/markdown-toc ] ; then npm install markdown-toc ; diff --git a/runtests b/runtests index 8e4f97f..8a2d3cf 100755 --- a/runtests +++ b/runtests @@ -61,6 +61,10 @@ def _test(): @_target def _gfmrun(): + go_version = check_output('go version'.split()).split()[2] + if go_version < 'go1.3': + print('runtests: skip on {}'.format(go_version), file=sys.stderr) + return _run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])