appveyor.yml 2.1 KB

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