This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows building and (attempt at) appveyor support (#37)
* Adjustments to build and test to make them work on Windows with git bash * Experimental appveyor.yml for windows testing * Put back accidentally committed vendor changes * Use windows pwd syntax instead of linux * Attempt to clean up after govendor fetch * Improve the README to mention windows building * Try out using docker-ce * Experiment: with docker-ce try simple mount * Add docs on how to build using powershell * Add chocolatey and explain about its usage in readme * Add comment about why we can't currently use appveyor successfully
- Loading branch information
Showing
10 changed files
with
151 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# At this time the appveyor.yml doesn't help us much because we use | ||
# Linux docker containers extensively, and appveyor is unable to use them. | ||
# So even building (not to mention testing) isn't possible. | ||
version: "{build}" | ||
image: Visual Studio 2017 | ||
|
||
# Source Config | ||
clone_folder: c:\gopath\src\github.com\drud\build-tools | ||
|
||
# Build host | ||
|
||
environment: | ||
GOPATH: c:\gopath | ||
GOVERSION: 1.8.3 | ||
BASH: "C:/Program Files/git/bin/bash" | ||
|
||
init: | ||
- git config --global core.autocrlf input | ||
|
||
# Build | ||
|
||
install: | ||
- ps: Stop-Service docker | ||
- ps: Remove-Item -Force -Recurse $env:ProgramFiles\docker | ||
- ps: Invoke-WebRequest -Uri "https://download.docker.com/win/static/test/x86_64/docker-17.06.0-ce.zip" -OutFile "docker.zip" | ||
- ps: Expand-Archive -Path "docker.zip" -DestinationPath $env:ProgramFiles -Force | ||
- ps: Remove-Item docker.zip | ||
- ps: Start-Service docker | ||
- ps: Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.14.0/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\docker\docker-compose.exe | ||
- docker run -it -v C:/gopath:/junk busybox ls | ||
|
||
- docker version | ||
- docker-compose version | ||
# Install the specific Go version. | ||
- rmdir c:\go /s /q | ||
- curl -fsS -o golang.msi https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi | ||
- msiexec /i golang.msi /q | ||
- go version | ||
- choco install -y git make | ||
- make --version | ||
|
||
build_script: | ||
- cd tests | ||
- '"%BASH%" -c "make windows"' | ||
|
||
deploy: false | ||
|
||
test_script: | ||
- cd tests | ||
- '"%BASH%" -c "make test"' |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
/.dockerfile | ||
/VERSION.txt | ||
/.docker_image | ||
|
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
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
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
Oops, something went wrong.