-
Notifications
You must be signed in to change notification settings - Fork 243
/
appveyor.yml
49 lines (39 loc) · 1.54 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "{build}"
image: Visual Studio 2017
clone_folder: C:\gopath\src\github.com\redhat-developer\odo
environment:
GOPATH: C:\gopath
GOVERSION: 1.11
platform:
- x64
init:
# required to get around following error
# error: unable to create file vendor/github.com/kubernetes-incubator/service-catalog/cmd/svcat/testdata/responses/catalog/clusterserviceplans_fieldSelector=spec.clusterServiceClassRef.name=4f6e6cf6-ffdd-425f-a2c7-3c9258ad2468,spec.externalName=default.json: Filename too long
- git config --system core.longpaths true
install:
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
- go version
- go env
- copy C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin\mingw32-make.exe C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
- set PATH=%PATH%;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%GOPATH%\bin
- make goget-tools
test_script:
- make test
build_script:
- make cross
after_test:
- ps : 7z a -tgzip odo-linux-amd64.gz dist\bin\linux-amd64\odo
- ps : 7z a -tgzip odo-linux-arm.gz dist\bin\linux-arm\odo
- ps : 7z a -tgzip odo-darwin-amd64.gz dist\bin\darwin-amd64\odo
- ps : 7z a -tgzip odo-windows-amd64.gz dist\bin\windows-amd64\odo.exe
artifacts:
- path: odo-linux-amd64.gz
name: Linux-amd64 binary
- path: odo-linux-arm.gz
name: Linux-arm binary
- path: odo-darwin-amd64.gz
name: OS-X binary
- path: odo-windows-amd64.gz
name: Windows-amd64 binary