|
1 | | -version: "{build}" |
2 | | - |
3 | | -# Source Config |
4 | | -clone_folder: c:\gopath\src\github.com\docker\docker-credential-helpers |
5 | | - |
6 | | -# Build host |
7 | | - |
| 1 | +image: Visual Studio 2015 |
8 | 2 | environment: |
9 | | - global: |
10 | 3 | GOPATH: c:\gopath |
11 | | - CGO_ENABLED: 1 |
12 | | - GOVERSION: 1.6 |
13 | | - matrix: |
14 | | - - platform: x86 |
15 | | - GOARCH: 386 |
16 | | - MSYS2_BITS: 32 |
17 | | - - platform: x64 |
18 | | - GOARCH: amd64 |
19 | | - MSYS2_BITS: 64 |
20 | 4 |
|
21 | | -init: |
22 | | - - git config --global core.autocrlf input |
23 | | - |
24 | | -# Build |
| 5 | +clone_folder: c:\gopath\src\github.com\docker\docker-credential-helpers |
| 6 | +clone_depth: 10 |
25 | 7 |
|
26 | | -install: |
27 | | - # Install Go 1.6. |
28 | | - - rmdir c:\go /s /q |
29 | | - - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.msi |
30 | | - - msiexec /i go%GOVERSION%.windows-%GOARCH%.msi /q |
31 | | - - set Path=c:\msys64\mingw%MSYS2_BITS%\bin;c:\go\bin;%Path% |
32 | | - - go version |
33 | | - - go env |
| 8 | +before_build: |
| 9 | + - set PATH=%PATH%;C:\MinGW\bin; |
| 10 | + - set PATH=%PATH%;C:\go18\bin; |
| 11 | + - set GOROOT=C:\go18 |
34 | 12 |
|
35 | | -build: false |
| 13 | +build_script: |
| 14 | + - mingw32-make vet_win wincred |
36 | 15 |
|
37 | 16 | test_script: |
38 | | - - go vet ./wincred |
39 | | - - go test -v github.com/docker/docker-credential-helpers/wincred |
| 17 | + - mingw32-make test |
40 | 18 |
|
41 | | -# Equivalent to `before_deploy` phase |
42 | | -after_test: |
43 | | - # build binary |
44 | | - - mkdir bin |
45 | | - - go build -o bin/docker-credential-wincred wincred/cmd/main_windows.go |
46 | | - # build zipfile, will look like docker-credential-wincred-v0.1.0-amd64.zip in the root directory |
47 | | - - cd bin && 7z a ../docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip docker-credential-wincred |
| 19 | +deploy: off |
48 | 20 |
|
49 | | -# IMPORTANT All the artifacts need to be listed here, or they won't be uploaded to GitHub |
50 | 21 | artifacts: |
51 | | - - path: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip |
52 | | - name: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip |
53 | | - |
54 | | -deploy: |
55 | | - # All the zipped artifacts will be deployed |
56 | | - description: "Visit the [Changelog](https://github.com/docker/docker-credential-helpers/blob/master/CHANGELOG.md) for a detailed description of what's new in this release." |
57 | | - artifact: /.*\.zip/ |
58 | | - auth_token: |
59 | | - secure: ixWmTXZs8aV5+9s6vPXziIcdMMLd+lBVINJ0K/Sy++2wllpRxUec4/TPVKUGLqvL |
60 | | - provider: GitHub |
61 | | - # deploy when a new tag is pushed |
62 | | - on: |
63 | | - appveyor_repo_tag: true |
| 22 | + - path: bin/docker-credential-wincred.exe |
64 | 23 |
|
65 | | -branches: |
66 | | - only: |
67 | | - - master |
| 24 | +configuration: Release |
0 commit comments