Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

54 řádky
2.7 KiB

  1. version: 1.0.{build}
  2. image: Visual Studio 2017
  3. build:
  4. verbosity: minimal
  5. shallow_clone: false
  6. environment:
  7. PQCLEAN_ONLY_DIFF: 1
  8. PQCLEAN_SKIP_SCHEMES: sphincs-haraka-128f-robust,sphincs-haraka-192s-robust,sphincs-sha256-128f-robust,sphincs-sha256-192s-robust,sphincs-shake256-128f-robust,sphincs-shake256-192s-robust,sphincs-haraka-128f-simple,sphincs-haraka-192s-simple,sphincs-sha256-128f-simple,sphincs-sha256-192s-simple,sphincs-shake256-128f-simple,sphincs-shake256-192s-simple,sphincs-haraka-128s-robust,sphincs-haraka-256f-robust,sphincs-sha256-128s-robust,sphincs-sha256-256f-robust,sphincs-shake256-128s-robust,sphincs-shake256-256f-robust,sphincs-haraka-128s-simple,sphincs-haraka-256f-simple,sphincs-sha256-128s-simple,sphincs-sha256-256f-simple,sphincs-shake256-128s-simple,sphincs-shake256-256f-simple,sphincs-haraka-192f-robust,sphincs-haraka-256s-robust,sphincs-sha256-192f-robust,sphincs-sha256-256s-robust,sphincs-shake256-192f-robust,sphincs-shake256-256s-robust,sphincs-haraka-192f-simple,sphincs-haraka-256s-simple,sphincs-sha256-192f-simple,sphincs-sha256-256s-simple,sphincs-shake256-192f-simple,sphincs-shake256-256s-simple
  9. matrix:
  10. - BITS: 64
  11. PQCLEAN_ONLY_TYPES: kem
  12. - BITS: 32
  13. PQCLEAN_ONLY_TYPES: kem
  14. - BITS: 64
  15. PQCLEAN_ONLY_TYPES: sign
  16. - BITS: 32
  17. PQCLEAN_ONLY_TYPES: sign
  18. init:
  19. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%BITS%.bat"
  20. # Download AStyle 3.1: first enable strong crypto in Invoke-WebRequest
  21. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319" -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
  22. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319" -Name "SchUseStrongCrypto" -Value '1' -Type DWord
  23. # Add Python to PATH
  24. - set PATH="C:\\Python37";"C:\\Python37\Scripts";%PATH%
  25. build_script:
  26. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  27. - git fetch --all
  28. - sh: |
  29. COMMIT=$(git rev-parse HEAD)
  30. git checkout $APPVEYOR_REPO_BRANCH
  31. git reset --hard $COMMIT
  32. - git diff --name-only origin/master
  33. - python -m pip install -r requirements.txt
  34. - cd test
  35. # Download Astyle to local folder because putting it in PATH doesn't work
  36. - ps: Invoke-WebRequest -OutFile "astyle.exe" "https://rded.nl/pqclean/AStyle.exe"
  37. # Run tests
  38. - python -m pytest --verbose --numprocesses=auto --junitxml=results.xml
  39. on_finish:
  40. - ps: |
  41. Try {
  42. $wc = New-Object 'System.Net.WebClient'
  43. $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results.xml))
  44. } Catch {
  45. Write-Warning "$($error[0])"
  46. }