Switch back to symlinking on Linux and Mac

and fix existence of markdown-toc on Windows
This commit is contained in:
Dan Buch 2016-06-18 15:47:23 -04:00
parent a8027b8491
commit 11311185a0
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
2 changed files with 9 additions and 1 deletions

View File

@ -35,7 +35,9 @@ before_script:
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;
fi
- git clone . ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2
- mkdir -p ${GOPATH%%:*}/src/gopkg.in/urfave
- rm -rvf ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2
- ln -sv ${TRAVIS_BUILD_DIR} ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2
- go get github.com/urfave/gfmxr/...
script:

View File

@ -4,6 +4,9 @@ os: Windows Server 2012 R2
clone_folder: c:\gopath\src\github.com\urfave\cli
cache:
- node_modules
environment:
GOPATH: C:\gopath
GOVERSION: 1.6
@ -19,6 +22,9 @@ install:
- git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
- go get github.com/urfave/gfmxr/...
- go get -v -t ./...
- ps: Install-Product node 6
- ps: $MarkdownTocExists = Test-Path node_modules\.bin\markdown-toc
- ps: if ($MarkdownTocExists -eq $False) { npm install markdown-toc }
build_script:
- python runtests vet