|
1 |
| -os: Visual Studio 2019 |
2 | 1 | clone_depth: 5
|
3 | 2 | version: "{branch}.{build}"
|
| 3 | + |
| 4 | +image: |
| 5 | + - Ubuntu |
| 6 | + - Visual Studio 2019 |
| 7 | + |
4 | 8 | environment:
|
5 | 9 | matrix:
|
6 |
| - # We use gcc from MSYS2 because it is the most recent compiler version available on |
7 |
| - # AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is |
8 |
| - # contained in PATH. |
9 | 10 | - GETH_ARCH: amd64
|
10 |
| - GETH_CC: C:\msys64\mingw64\bin\gcc.exe |
11 |
| - PATH: C:\msys64\mingw64\bin;C:\Program Files (x86)\NSIS\;%PATH% |
| 11 | + GETH_MINGW: 'C:\msys64\mingw64' |
12 | 12 | - GETH_ARCH: 386
|
13 |
| - GETH_CC: C:\msys64\mingw32\bin\gcc.exe |
14 |
| - PATH: C:\msys64\mingw32\bin;C:\Program Files (x86)\NSIS\;%PATH% |
| 13 | + GETH_MINGW: 'C:\msys64\mingw32' |
15 | 14 |
|
16 | 15 | install:
|
17 | 16 | - git submodule update --init --depth 1
|
18 | 17 | - go version
|
19 |
| - - "%GETH_CC% --version" |
20 | 18 |
|
21 |
| -build_script: |
22 |
| - - go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC% |
| 19 | +for: |
| 20 | + # Linux has its own script without -arch and -cc. |
| 21 | + # The linux builder also runs lint. |
| 22 | + - matrix: |
| 23 | + only: |
| 24 | + - image: Ubuntu |
| 25 | + build_script: |
| 26 | + - go run build/ci.go lint |
| 27 | + - go run build/ci.go install -dlgo |
| 28 | + test_script: |
| 29 | + - go run build/ci.go test -dlgo -coverage |
23 | 30 |
|
24 |
| -after_build: |
25 |
| - - go run build\ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds |
26 |
| - - go run build\ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds |
| 31 | + # linux/386 is disabled. |
| 32 | + - matrix: |
| 33 | + exclude: |
| 34 | + - image: Ubuntu |
| 35 | + GETH_ARCH: 386 |
27 | 36 |
|
28 |
| -test_script: |
29 |
| - - go run build\ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage |
| 37 | + # Windows builds for amd64 + 386. |
| 38 | + - matrix: |
| 39 | + only: |
| 40 | + - image: Visual Studio 2019 |
| 41 | + environment: |
| 42 | + # We use gcc from MSYS2 because it is the most recent compiler version available on |
| 43 | + # AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is |
| 44 | + # contained in PATH. |
| 45 | + GETH_CC: '%GETH_MINGW%\bin\gcc.exe' |
| 46 | + PATH: '%GETH_MINGW%\bin;C:\Program Files (x86)\NSIS\;%PATH%' |
| 47 | + build_script: |
| 48 | + - 'echo %GETH_ARCH%' |
| 49 | + - 'echo %GETH_CC%' |
| 50 | + - '%GETH_CC% --version' |
| 51 | + - go run build/ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC% |
| 52 | + after_build: |
| 53 | + # Upload builds. Note that ci.go makes this a no-op PR builds. |
| 54 | + - go run build/ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds |
| 55 | + - go run build/ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds |
| 56 | + test_script: |
| 57 | + - go run build/ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage |
0 commit comments