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.

.travis.yml 13 KiB

5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. language: c
  2. matrix:
  3. include:
  4. # Arm64 builds
  5. - name: "KEMs: ARM64 + GCC"
  6. os: linux
  7. arch: arm64
  8. compiler: gcc
  9. before_script:
  10. - export COMMIT=$(git rev-parse HEAD)
  11. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  12. - git fetch --unshallow
  13. - git checkout $TRAVIS_BRANCH
  14. - git reset --hard $COMMIT
  15. script:
  16. - travis_wait 60 docker run -e CI=true -e PQCLEAN_ONLY_TYPES -e PQCLEAN_ONLY_DIFF --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:arm64" /bin/bash -c "
  17. uname -a &&
  18. export CC=${CC} &&
  19. pip3 install -r requirements.txt &&
  20. mkdir test-results &&
  21. cd test && python3 -m pytest --verbose --junitxml=test-results/pytest/results.xml --numprocesses=auto"
  22. env:
  23. PQCLEAN_ONLY_TYPES: kem
  24. PQCLEAN_ONLY_DIFF: 1
  25. services:
  26. - docker
  27. - name: "KEMs: ARM64 + Clang"
  28. os: linux
  29. arch: arm64
  30. compiler: clang
  31. before_script:
  32. - export COMMIT=$(git rev-parse HEAD)
  33. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  34. - git fetch --unshallow
  35. - git checkout $TRAVIS_BRANCH
  36. - git reset --hard $COMMIT
  37. script:
  38. - travis_wait 60 docker run -e CI=true -e PQCLEAN_ONLY_TYPES -e PQCLEAN_ONLY_DIFF --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:arm64" /bin/bash -c "
  39. uname -a &&
  40. export CC=${CC} &&
  41. pip3 install -r requirements.txt &&
  42. mkdir test-results &&
  43. cd test && python3 -m pytest --verbose --junitxml=test-results/pytest/results.xml --numprocesses=auto"
  44. env:
  45. PQCLEAN_ONLY_TYPES: kem
  46. PQCLEAN_ONLY_DIFF: 1
  47. services:
  48. - docker
  49. - name: "Signs: ARM64 + GCC"
  50. os: linux
  51. arch: arm64
  52. compiler: gcc
  53. before_script:
  54. - export COMMIT=$(git rev-parse HEAD)
  55. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  56. - git fetch --unshallow
  57. - git checkout $TRAVIS_BRANCH
  58. - git reset --hard $COMMIT
  59. script:
  60. - travis_wait 60 docker run -e CI=true -e PQCLEAN_ONLY_TYPES -e PQCLEAN_ONLY_DIFF -e PQCLEAN_SKIP_SCHEMES --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:arm64" /bin/bash -c "
  61. uname -a &&
  62. export CC=${CC} &&
  63. pip3 install -r requirements.txt &&
  64. mkdir test-results &&
  65. cd test && python3 -m pytest --verbose --junitxml=test-results/pytest/results.xml --numprocesses=auto"
  66. env:
  67. PQCLEAN_ONLY_TYPES: sign
  68. PQCLEAN_ONLY_DIFF: 1
  69. 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
  70. services:
  71. - docker
  72. - name: "signs: ARM64 + Clang"
  73. os: linux
  74. arch: arm64
  75. compiler: clang
  76. before_script:
  77. - export COMMIT=$(git rev-parse HEAD)
  78. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  79. - git fetch --unshallow
  80. - git checkout $TRAVIS_BRANCH
  81. - git reset --hard $COMMIT
  82. script:
  83. - travis_wait 60 docker run -e CI=true -e PQCLEAN_ONLY_TYPES -e PQCLEAN_ONLY_DIFF=1 -e PQCLEAN_SKIP_SCHEMES --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:arm64" /bin/bash -c "
  84. uname -a &&
  85. export CC=${CC} &&
  86. pip3 install -r requirements.txt &&
  87. mkdir test-results &&
  88. cd test && python3 -m pytest --verbose --junitxml=test-results/pytest/results.xml --numprocesses=auto"
  89. env:
  90. PQCLEAN_ONLY_TYPES: sign
  91. PQCLEAN_ONLY_DIFF: 1
  92. 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
  93. services:
  94. - docker
  95. # MacOS builds
  96. - name: "KEMs: MacOS + Clang"
  97. os: osx
  98. osx_image: xcode11.2
  99. compiler: clang
  100. before_install:
  101. - pip3 install -r requirements.txt
  102. before_script:
  103. - export COMMIT=$(git rev-parse HEAD)
  104. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  105. - git fetch --unshallow
  106. - git checkout $TRAVIS_BRANCH
  107. - git reset --hard $COMMIT
  108. script:
  109. # Use travis-wait to allow slower tests to run
  110. - "cd test && travis_wait 60 python3 -m pytest --numprocesses=auto"
  111. env:
  112. PQCLEAN_ONLY_TYPES: kem
  113. PQCLEAN_ONLY_DIFF: 1
  114. 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
  115. addons:
  116. homebrew:
  117. packages:
  118. - astyle
  119. - name: "KEMs: MacOS + GCC9"
  120. os: osx
  121. osx_image: xcode11.2
  122. compiler: gcc
  123. addons:
  124. homebrew:
  125. packages:
  126. - astyle
  127. - gcc@9
  128. env:
  129. PQCLEAN_ONLY_TYPES: kem
  130. PQCLEAN_ONLY_DIFF: 1
  131. 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
  132. before_install:
  133. - export COMMIT=$(git rev-parse HEAD)
  134. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  135. - git fetch --unshallow
  136. - git checkout $TRAVIS_BRANCH
  137. - git reset --hard $COMMIT
  138. - pip3 install -r requirements.txt
  139. - brew link gcc
  140. - export PATH="/usr/local/bin:$PATH"
  141. - ln -s /usr/local/bin/gcc-9 /usr/local/bin/gcc
  142. - gcc --version
  143. script:
  144. # Use travis-wait to allow slower tests to run
  145. - "cd test && travis_wait 60 python3 -m pytest --numprocesses=auto"
  146. - name: "SIGs on MacOS + Clang"
  147. os: osx
  148. osx_image: xcode11.2
  149. compiler: clang
  150. before_install:
  151. - pip3 install -r requirements.txt
  152. before_script:
  153. - export COMMIT=$(git rev-parse HEAD)
  154. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  155. - git fetch --unshallow
  156. - git checkout $TRAVIS_BRANCH
  157. - git reset --hard $COMMIT
  158. script:
  159. # Use travis-wait to allow slower tests to run
  160. - "cd test && travis_wait 60 python3 -m pytest --numprocesses=auto"
  161. env:
  162. PQCLEAN_ONLY_TYPES: sign
  163. PQCLEAN_ONLY_DIFF: 1
  164. 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
  165. addons:
  166. homebrew:
  167. packages:
  168. - astyle
  169. - name: "SIGs on MacOS + GCC9"
  170. os: osx
  171. osx_image: xcode11.2
  172. compiler: gcc
  173. addons:
  174. homebrew:
  175. packages:
  176. - astyle
  177. - gcc@9
  178. env:
  179. PQCLEAN_ONLY_TYPES: sign
  180. PQCLEAN_ONLY_DIFF: 1
  181. 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
  182. before_install:
  183. - export COMMIT=$(git rev-parse HEAD)
  184. - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
  185. - git fetch --unshallow
  186. - git checkout $TRAVIS_BRANCH
  187. - git reset --hard $COMMIT
  188. - pip3 install -r requirements.txt
  189. - brew link gcc
  190. - export PATH="/usr/local/bin:$PATH"
  191. - ln -s /usr/local/bin/gcc-9 /usr/local/bin/gcc
  192. - gcc --version
  193. script:
  194. # Use travis-wait to allow slower tests to run
  195. - "cd test && travis_wait 60 python3 -m pytest --numprocesses=auto"
  196. cache:
  197. directories:
  198. - $HOME/Library/Caches/pip
  199. - $HOME/Library/Caches/Homebrew
  200. before_cache:
  201. - brew cleanup
  202. # vim: set ft=yaml ts=2 sw=2 tw=0 et :