-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
License: MIT Signed-off-by: dignifiedquire <[email protected]>
- Loading branch information
1 parent
b0fc9a4
commit 77144b9
Showing
4 changed files
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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</dev/null; make nofuse"' | ||
|
||
test_script: | ||
- make $TEST_SUITE | ||
- '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; export GOFLAGS=''-tags nofuse''; export TEST_NO_FUSE=1; export TEST_VERBOSE=1; export TEST_SUITE=test_sharness_expensive; make $TEST_SUITE"' | ||
|
||
build: | ||
parallel: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// +build !windows | ||
|
||
package main | ||
|
||
import ( | ||
"os/exec" | ||
"syscall" | ||
) | ||
|
||
func init() { | ||
setupOpt = func(cmd *exec.Cmd) { | ||
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters