github.com/demonoid81/containerd@v1.3.4/.appveyor.yml (about)

     1  version: "{build}"
     2  
     3  image: Visual Studio 2017
     4  
     5  clone_folder: c:\gopath\src\github.com\containerd\containerd
     6  
     7  branches:
     8    only:
     9      - master
    10      - /release\/.*/
    11  
    12  environment:
    13    GOPATH: C:\gopath
    14    CGO_ENABLED: 1
    15    matrix:
    16      - GO_VERSION: 1.13.10
    17  
    18  before_build:
    19    - choco install -y mingw --version 5.3.0
    20    # Install Go
    21    - rd C:\Go /s /q
    22    - appveyor DownloadFile https://storage.googleapis.com/golang/go%GO_VERSION%.windows-amd64.zip
    23    - 7z x go%GO_VERSION%.windows-amd64.zip -oC:\ >nul
    24    - go version
    25    - choco install codecov
    26    # Clone hcsshim at the vendored version
    27    - bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
    28         rm -rf /c/gopath/src/github.com/Microsoft/hcsshim;
    29         git clone -q https://github.com/Microsoft/hcsshim.git /c/gopath/src/github.com/Microsoft/hcsshim;
    30         export HCSSHIM_VERSION=`grep Microsoft/hcsshim vendor.conf | awk '{print $2}'`;
    31         echo Using Microsoft/hcsshim $HCSSHIM_VERSION;
    32         pushd /c/gopath/src/github.com/Microsoft/hcsshim;
    33         git checkout $HCSSHIM_VERSION;
    34         popd"
    35    # Print host version. TODO: Remove this when containerd has a way to get host version
    36    - ps: $psversiontable
    37  
    38  build_script:
    39    # Build containerd-shim-runhcs-v1.exe and runhcs.exe from Microsoft/hcsshim
    40    - bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
    41          export GOBIN=/c/gopath/src/github.com/Microsoft/hcsshim/bin;
    42          mkdir $GOBIN;
    43          pushd /c/gopath/src/github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1;
    44          go install;
    45          cd ../runhcs;
    46          go install;
    47          ls -al $GOBIN;
    48          popd"
    49    - bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/bin:$PATH;
    50          script/setup/install-dev-tools;
    51          mingw32-make.exe check"
    52    - bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH ; mingw32-make.exe build binaries"
    53  
    54  test_script:
    55    # TODO: need an equivalent of TRAVIS_COMMIT_RANGE
    56    # - GIT_CHECK_EXCLUDE="./vendor" TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE/.../..}" C:\MinGW\bin\mingw32-make.exe dco
    57    - bash.exe -lc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe coverage root-coverage"
    58    # - bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe integration"
    59    # Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759
    60    # - bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH; TESTFLAGS_PARALLEL=1 mingw32-make.exe integration"
    61  
    62  on_success:
    63    codecov --flag windows -f coverage.txt