diff --git a/.travis.yml b/.travis.yml index 8bb0e9c..75d9ea3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,23 +5,27 @@ osx_image: xcode8.3 go: 1.11.x os: -- linux -- osx + - linux + - osx cache: directories: - - node_modules + - node_modules before_script: -- go get github.com/urfave/gfmrun/... || true -- go get golang.org/x/tools/cmd/goimports -- if [ ! -f node_modules/.bin/markdown-toc ] ; then + - go get github.com/urfave/gfmrun/... || true + - go get golang.org/x/tools/cmd/goimports + - if [ ! -f node_modules/.bin/markdown-toc ] ; then npm install markdown-toc ; - fi + fi script: -- ./runtests gen -- ./runtests vet -- ./runtests test -- ./runtests gfmrun -- ./runtests toc + - ./runtests gen + - ./runtests vet + - ./runtests test + - ./runtests gfmrun + - ./runtests toc + +after_success: + - ./coverage.sh + - bash <(curl -s https://codecov.io/bash) diff --git a/appveyor.yml b/appveyor.yml index 1e1489c..f841e61 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,19 +8,19 @@ clone_folder: c:\gopath\src\github.com\urfave\cli environment: GOPATH: C:\gopath - GOVERSION: 1.8.x + GOVERSION: 1.11.x PYTHON: C:\Python36-x64 PYTHON_VERSION: 3.6.x PYTHON_ARCH: 64 install: -- set PATH=%GOPATH%\bin;C:\go\bin;%PATH% -- go version -- go env -- go get github.com/urfave/gfmrun/... -- go get -v -t ./... + - set PATH=%GOPATH%\bin;C:\go\bin;%PATH% + - go version + - go env + - go get github.com/urfave/gfmrun/... + - go get -v -t ./... build_script: -- python runtests vet -- python runtests test -- python runtests gfmrun + - python runtests vet + - python runtests test + - python runtests gfmrun diff --git a/coverage.sh b/coverage.sh new file mode 100755 index 0000000..03c720c --- /dev/null +++ b/coverage.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e +echo "" > coverage.txt + +for f in $(ls *.coverprofile); do + cat $f >> coverage.txt + rm $f +done \ No newline at end of file diff --git a/runtests b/runtests index ee22bde..80d225a 100755 --- a/runtests +++ b/runtests @@ -34,10 +34,6 @@ def main(sysargs=sys.argv[:]): def _test(): - if check_output('go version'.split()).split()[2] < 'go1.2': - _run('go test -v .') - return - coverprofiles = [] for subpackage in ['', 'altsrc']: coverprofile = 'cli.coverprofile'