|
2 | 2 | # Linux docker containers extensively, and appveyor is unable to use them. |
3 | 3 | # So even building (not to mention testing) isn't possible. |
4 | 4 | version: "{build}" |
5 | | -image: Visual Studio 2017 |
| 5 | +image: Windows Server 2019 |
6 | 6 |
|
7 | | -# Source Config |
8 | | -clone_folder: c:\gopath\src\github.com\drud\build-tools |
9 | | - |
10 | | -# Build host |
11 | | - |
12 | | -environment: |
13 | | - GOPATH: c:\gopath |
14 | | - GOVERSION: 1.8.3 |
15 | | - BASH: "C:/Program Files/git/bin/bash" |
16 | | - |
17 | | -init: |
18 | | - - git config --global core.autocrlf input |
19 | | - |
20 | | -# Build |
21 | 7 |
|
22 | 8 | install: |
23 | | - - ps: Stop-Service docker |
24 | | - - ps: Remove-Item -Force -Recurse $env:ProgramFiles\docker |
25 | | - - ps: Invoke-WebRequest -Uri "https://download.docker.com/win/static/test/x86_64/docker-17.06.0-ce.zip" -OutFile "docker.zip" |
26 | | - - ps: Expand-Archive -Path "docker.zip" -DestinationPath $env:ProgramFiles -Force |
27 | | - - ps: Remove-Item docker.zip |
28 | | - - ps: Start-Service docker |
29 | | - - 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 |
30 | | - - docker run -it -v C:/gopath:/junk busybox ls |
31 | | - |
32 | | - - docker version |
33 | | - - docker-compose version |
34 | | - # Install the specific Go version. |
35 | | - - rmdir c:\go /s /q |
36 | | - - curl -fsS -o golang.msi https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi |
37 | | - - msiexec /i golang.msi /q |
38 | | - - go version |
39 | | - - choco install -y git make |
40 | | - - make --version |
| 9 | + - cinst make golang git |
| 10 | + - refreshenv |
| 11 | + - git config --global core.autocrlf false |
41 | 12 |
|
42 | 13 | build_script: |
43 | | - - cd tests |
44 | | - - '"%BASH%" -c "make windows"' |
45 | | - |
| 14 | +# - docker run --rm -t busybox ls /etc |
| 15 | +# - docker run -t -v "C:\:/junk" busybox ls |
| 16 | +# - docker run -t -v %cd%:/tmp/junk busybox ls /tmp/junk |
| 17 | +# - docker run -t -v "%cd%:/tmp/junk" busybox ls /tmp/junk |
| 18 | +# - ps: docker run --rm -it -v ${PWD}:/tmp/junk busybox ls /tmp/junk |
| 19 | +# - where bash |
| 20 | +# - bash --version |
| 21 | +# - where make |
| 22 | +# - make --version |
| 23 | +# - go version |
| 24 | + - docker version && docker-compose version |
| 25 | + - cmd: where docker |
| 26 | + - cmd: .autotests/test.cmd |
| 27 | + |
| 28 | + |
| 29 | +test: off |
46 | 30 | deploy: false |
47 | | - |
48 | | -test_script: |
49 | | - - cd tests |
50 | | - - '"%BASH%" -c "make test"' |
0 commit comments