From 11311185a0592038140a3ef50b439a59d4ade145 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 18 Jun 2016 15:47:23 -0400 Subject: [PATCH] Switch back to symlinking on Linux and Mac and fix existence of markdown-toc on Windows --- .travis.yml | 4 +++- appveyor.yml | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 46bd7ef..c879139 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/appveyor.yml b/appveyor.yml index ae91cd4..a56f1db 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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