Merge pull request #510 from urfave/skip-gfmrun-below-go1.3

Skip gfmrun installation and tests below go1.3
This commit is contained in:
Dan Buch 2016-08-22 15:54:13 -04:00 committed by GitHub
commit 207bb61852
2 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@ matrix:
os: osx
before_script:
- 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 ;

View File

@ -57,6 +57,10 @@ def _test():
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'])