github.com/ezbuy/gauge@v0.9.4-0.20171013092048-7ac5bd3931cd/appveyor.yml (about)

     1  version: 1.0.{build}
     2  clone_folder: c:\gopath\src\github.com\getgauge\gauge
     3  init:
     4  - ps: >-
     5      Add-Type -AssemblyName System.IO.Compression.FileSystem
     6          if (!(Test-Path -Path "C:\maven" )) {
     7          (new-object System.Net.WebClient).DownloadFile('http://www.us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip', 'C:\maven-bin.zip')
     8          [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
     9          }
    10  environment:
    11    GOPATH: c:\gopath
    12    GAUGE_TELEMETRY_ENABLED: false
    13  build_script:
    14  - ps: >-
    15      $env:Path = "$env:GOPATH\bin;" + [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
    16  
    17  
    18      go get github.com/tools/godep
    19  
    20  
    21      godep restore
    22  
    23      go test ./...
    24  
    25  
    26      go get github.com/getgauge/gauge
    27  test_script:
    28  - ps: >-
    29      git clone --depth=1 https://github.com/getgauge/gauge-tests ../gauge-tests
    30  
    31      cd ../gauge-tests
    32  
    33  
    34      gauge install
    35  
    36  
    37      mvn -q clean install -Denv=ci-java -DinParallel=false
    38  
    39  
    40      $wc = New-Object 'System.Net.WebClient'
    41          $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\reports-java\xml-report\result.xml))