From d6a1668a23c2e9513535c784718026901cef196e Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sat, 5 Dec 2015 22:25:57 +0100 Subject: [PATCH] Start fixing appveyor License: MIT Signed-off-by: dignifiedquire --- appveyor.yml | 47 +++++++++++++++++++++++------ test/dependencies/iptb/main.go | 9 +++++- test/dependencies/iptb/proc_unix.go | 14 +++++++++ test/sharness/lib/test-lib.sh | 6 ++-- 4 files changed, 63 insertions(+), 13 deletions(-) create mode 100644 test/dependencies/iptb/proc_unix.go diff --git a/appveyor.yml b/appveyor.yml index c7980be94353..a4ab92a53f34 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,20 +1,49 @@ +# Notes: +# - Minimal appveyor.yml file is an empty file. All sections are optional. +# - Indent each level of configuration with 2 spaces. Do not use tabs! +# - All section names are case-sensitive. +# - Section names should be unique on each level. + version: "{build}" + os: Windows Server 2012 R2 + +clone_folder: c:\go\src\github.com\ipfs\go-ipfs + environment: GOPATH: c:\gopath - TEST_NO_FUSE: 1 - TEST_VERBOSE: 1 - TEST_SUITE: test_sharness_expensive + #TEST_NO_FUSE: 1 + #TEST_VERBOSE: 1 + #TEST_SUITE: test_sharness_expensive + #GOFLAGS: -tags nofuse + global: + BASH: C:\cygwin\bin\bash + matrix: + - GOARCH: amd64 + GOVERSION: 1.5.1 + GOROOT: c:\go + DOWNLOADPLATFORM: "x64" + install: - - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - - rmdir c:\go /s /q - - appveyor DownloadFile https://storage.googleapis.com/golang/go1.5.1.windows-amd64.msi - - msiexec /i go1.5.1.windows-amd64.msi /q + # Enable make + #- SET PATH=c:\MinGW\bin;%PATH% + #- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe - go version - go env + +# Cygwin build script +# +# NOTES: +# +# The stdin/stdout file descriptor appears not to be valid for the Appveyor +# build which causes failures as certain functions attempt to redirect +# default file handles. Ensure a dummy file descriptor is opened with 'exec'. +# build_script: - - make install + - '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0&2 "Cannot find the tests' local ipfs tool." echo >&2 "Please check test and ipfs tool installation." exit 1 @@ -352,4 +353,3 @@ test_check_peerid() { return 1 } } -