1
0

config.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. # Python CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-python/ for more details
  4. #
  5. # Copyright (c) 2016-present, Facebook, Inc.
  6. # All rights reserved.
  7. #
  8. # This source code is licensed under the MIT license found in the
  9. # LICENSE file in the root directory of this source tree.
  10. #
  11. # Maybe one day this will work
  12. # "mac":
  13. # macos:
  14. # xcode: "9.0"
  15. # working_directory: ~/repo
  16. # steps:
  17. # - checkout
  18. # - run:
  19. # command: |
  20. # . .circleci/cmake_test.sh
  21. version: 2
  22. jobs:
  23. "py361":
  24. docker:
  25. - image: circleci/python:3.6.1
  26. working_directory: ~/repo
  27. steps:
  28. - checkout
  29. - run:
  30. command: |
  31. . .circleci/setup_circleimg.sh
  32. . .circleci/python_test.sh
  33. "py353":
  34. docker:
  35. - image: circleci/python:3.5.3
  36. working_directory: ~/repo
  37. steps:
  38. - checkout
  39. - run:
  40. command: |
  41. . .circleci/setup_circleimg.sh
  42. . .circleci/python_test.sh
  43. "py346":
  44. docker:
  45. - image: circleci/python:3.4.6
  46. working_directory: ~/repo
  47. steps:
  48. - checkout
  49. - run:
  50. command: |
  51. . .circleci/setup_circleimg.sh
  52. . .circleci/python_test.sh
  53. "py2713":
  54. docker:
  55. - image: circleci/python:2.7.13
  56. working_directory: ~/repo
  57. steps:
  58. - checkout
  59. - run:
  60. command: |
  61. . .circleci/setup_circleimg.sh
  62. . .circleci/python_test.sh
  63. "gcc5":
  64. docker:
  65. - image: gcc:5
  66. working_directory: ~/repo
  67. steps:
  68. - checkout
  69. - run:
  70. command: |
  71. . .circleci/gcc_test.sh
  72. "gcc6":
  73. docker:
  74. - image: gcc:6
  75. working_directory: ~/repo
  76. steps:
  77. - checkout
  78. - run:
  79. command: |
  80. . .circleci/gcc_test.sh
  81. "gcc7":
  82. docker:
  83. - image: gcc:7
  84. working_directory: ~/repo
  85. steps:
  86. - checkout
  87. - run:
  88. command: |
  89. . .circleci/gcc_test.sh
  90. "gcclatest":
  91. docker:
  92. - image: gcc:latest
  93. working_directory: ~/repo
  94. steps:
  95. - checkout
  96. - run:
  97. command: |
  98. . .circleci/gcc_test.sh
  99. "debian-wheezy-gcc":
  100. docker:
  101. - image: debian:wheezy
  102. working_directory: ~/repo
  103. steps:
  104. - checkout
  105. - run:
  106. command: |
  107. . .circleci/setup_debian.sh
  108. . .circleci/gcc_test.sh
  109. "debian-wheezy-cmake":
  110. docker:
  111. - image: debian:wheezy
  112. working_directory: ~/repo
  113. steps:
  114. - checkout
  115. - run:
  116. command: |
  117. . .circleci/setup_debian.sh
  118. . .circleci/cmake_test.sh
  119. "debian-jessie-gcc":
  120. docker:
  121. - image: debian:jessie
  122. working_directory: ~/repo
  123. steps:
  124. - checkout
  125. - run:
  126. command: |
  127. . .circleci/setup_debian.sh
  128. . .circleci/gcc_test.sh
  129. "debian-jessie-cmake":
  130. docker:
  131. - image: debian:jessie
  132. working_directory: ~/repo
  133. steps:
  134. - checkout
  135. - run:
  136. command: |
  137. . .circleci/setup_debian.sh
  138. . .circleci/cmake_test.sh
  139. "debian-jessie-python":
  140. docker:
  141. - image: debian:jessie
  142. working_directory: ~/repo
  143. steps:
  144. - checkout
  145. - run:
  146. command: |
  147. . .circleci/setup_debian.sh
  148. pip install .
  149. python runtests.py -u
  150. "website-build":
  151. docker:
  152. - image: node:latest
  153. working_directory: ~/repo
  154. steps:
  155. - checkout
  156. - run:
  157. command: |
  158. git config --global user.email "[email protected]"
  159. git config --global user.name "Website Deployment Script"
  160. echo "machine github.com login docusaurus-bot password $GITHUB_TOKEN_DOCUSAURUS_BOT" > ~/.netrc
  161. cd website && npm install && GIT_USER=docusaurus-bot npm run publish-gh-pages
  162. workflows:
  163. version: 2
  164. build:
  165. jobs:
  166. - "py361"
  167. - "py353"
  168. - "py346"
  169. - "py2713"
  170. - "gcc5"
  171. - "gcc6"
  172. - "gcc7"
  173. - "gcclatest"
  174. - "website-build"
  175. - "debian-wheezy-gcc"
  176. - "debian-wheezy-cmake"
  177. - "debian-jessie-gcc"
  178. - "debian-jessie-cmake"
  179. - "debian-jessie-python"