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.
 
 
 

238 lines
14 KiB

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