Reference implementations of PQC
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

48 rader
2.5 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. - BITS: 32
  12. init:
  13. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%BITS%.bat"
  14. # Download AStyle 3.1: first enable strong crypto in Invoke-WebRequest
  15. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319" -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
  16. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319" -Name "SchUseStrongCrypto" -Value '1' -Type DWord
  17. # Add Python to PATH
  18. - set PATH="C:\\Python37";"C:\\Python37\Scripts";%PATH%
  19. build_script:
  20. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  21. - git fetch --all
  22. - sh: |
  23. COMMIT=$(git rev-parse HEAD)
  24. git checkout $APPVEYOR_REPO_BRANCH
  25. git reset --hard $COMMIT
  26. - git diff --name-only origin/master
  27. - python -m pip install -r requirements.txt
  28. - cd test
  29. # Download Astyle to local folder because putting it in PATH doesn't work
  30. - ps: Invoke-WebRequest -OutFile "astyle.exe" "https://rded.nl/pqclean/AStyle.exe"
  31. # Run tests
  32. - python -m pytest --verbose --numprocesses=auto --junitxml=results.xml
  33. on_finish:
  34. - ps: |
  35. Try {
  36. $wc = New-Object 'System.Net.WebClient'
  37. $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results.xml))
  38. } Catch {
  39. Write-Warning "$($error[0])"
  40. }