appveyor.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. environment:
  2. matrix:
  3. - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
  4. - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
  5. ## uncomment the following lines to allow failures on nightly julia
  6. ## (tests will run but not make your overall status red)
  7. #matrix:
  8. # allow_failures:
  9. # - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
  10. # - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
  11. branches:
  12. only:
  13. - master
  14. - /release-.*/
  15. notifications:
  16. - provider: Email
  17. on_build_success: false
  18. on_build_failure: false
  19. on_build_status_changed: false
  20. install:
  21. - ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
  22. # If there's a newer build queued for the same PR, cancel this one
  23. - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
  24. https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
  25. Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
  26. throw "There are newer queued builds for this pull request, failing early." }
  27. # Download most recent Julia Windows binary
  28. - ps: (new-object net.webclient).DownloadFile(
  29. $env:JULIA_URL,
  30. "C:\projects\julia-binary.exe")
  31. # Run installer silently, output to C:\projects\julia
  32. - C:\projects\julia-binary.exe /S /D=C:\projects\julia
  33. build_script:
  34. # Need to convert from shallow to complete for Pkg.clone to work
  35. - IF EXIST .git\shallow (git fetch --unshallow)
  36. - C:\projects\julia\bin\julia -e "versioninfo();
  37. Pkg.clone(pwd(), \"RDKafka\"); Pkg.build(\"RDKafka\")"
  38. test_script:
  39. - C:\projects\julia\bin\julia -e "Pkg.test(\"RDKafka\")"