You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
967 B

  1. version: 1.0.{build}
  2. image: Visual Studio 2017
  3. build:
  4. verbosity: minimal
  5. environment:
  6. matrix:
  7. - BITS: 64
  8. - BITS: 32
  9. init:
  10. - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%BITS%.bat"
  11. # Download AStyle 3.1: first enable strong crypto in Invoke-WebRequest
  12. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319" -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
  13. - ps: Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319" -Name "SchUseStrongCrypto" -Value '1' -Type DWord
  14. # Add Python to PATH
  15. - set PATH="C:\\Python37";"C:\\Python37\Scripts";%PATH%
  16. build_script:
  17. - python -m pip install -r requirements.txt
  18. - cd test
  19. # Download Astyle to local folder because putting it in PATH doesn't work
  20. - ps: Invoke-WebRequest -OutFile "astyle.exe" "https://rded.nl/pqclean/AStyle.exe"
  21. # Run tests
  22. - python -m nose -v --rednose