config.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 BSD-style license found in the
  9. # LICENSE file in the root directory of this source tree. An additional grant
  10. # of patent rights can be found in the PATENTS file in the same directory.
  11. #
  12. # Maybe one day this will work
  13. # "mac":
  14. # macos:
  15. # xcode: "9.0"
  16. # working_directory: ~/repo
  17. # steps:
  18. # - checkout
  19. # - run:
  20. # command: |
  21. # . .circleci/cmake_test.sh
  22. version: 2
  23. jobs:
  24. "py361":
  25. docker:
  26. - image: circleci/python:3.6.1
  27. working_directory: ~/repo
  28. steps:
  29. - checkout
  30. - run:
  31. command: |
  32. sudo pip install pybind11
  33. sudo python setup.py install
  34. . .circleci/cmake_test.sh
  35. "py353":
  36. docker:
  37. - image: circleci/python:3.5.3
  38. working_directory: ~/repo
  39. steps:
  40. - checkout
  41. - run:
  42. command: |
  43. sudo pip install pybind11
  44. sudo python setup.py install
  45. . .circleci/cmake_test.sh
  46. "py346":
  47. docker:
  48. - image: circleci/python:3.4.6
  49. working_directory: ~/repo
  50. steps:
  51. - checkout
  52. - run:
  53. command: |
  54. sudo pip install pybind11
  55. sudo python setup.py install
  56. . .circleci/cmake_test.sh
  57. "py336":
  58. docker:
  59. - image: circleci/python:3.3.6
  60. working_directory: ~/repo
  61. steps:
  62. - checkout
  63. - run:
  64. command: |
  65. sudo pip install pybind11
  66. sudo python setup.py install
  67. . .circleci/cmake_test.sh
  68. "py2713":
  69. docker:
  70. - image: circleci/python:2.7.13
  71. working_directory: ~/repo
  72. steps:
  73. - checkout
  74. - run:
  75. command: |
  76. sudo pip install pybind11
  77. sudo python setup.py install
  78. . .circleci/cmake_test.sh
  79. "gcc5":
  80. docker:
  81. - image: gcc:5
  82. working_directory: ~/repo
  83. steps:
  84. - checkout
  85. - run:
  86. command: |
  87. . .circleci/gcc_test.sh
  88. "gcc6":
  89. docker:
  90. - image: gcc:6
  91. working_directory: ~/repo
  92. steps:
  93. - checkout
  94. - run:
  95. command: |
  96. . .circleci/gcc_test.sh
  97. "gcc7":
  98. docker:
  99. - image: gcc:7
  100. working_directory: ~/repo
  101. steps:
  102. - checkout
  103. - run:
  104. command: |
  105. . .circleci/gcc_test.sh
  106. "gcclatest":
  107. docker:
  108. - image: gcc:latest
  109. working_directory: ~/repo
  110. steps:
  111. - checkout
  112. - run:
  113. command: |
  114. . .circleci/gcc_test.sh
  115. "debian-wheezy":
  116. docker:
  117. - image: debian:wheezy
  118. working_directory: ~/repo
  119. steps:
  120. - checkout
  121. - run:
  122. command: |
  123. . .circleci/setup_debian.sh
  124. . .circleci/gcc_test.sh
  125. . .circleci/cmake_test.sh
  126. "website-build":
  127. docker:
  128. - image: node:latest
  129. working_directory: ~/repo
  130. steps:
  131. - checkout
  132. - run:
  133. command: |
  134. git config --global user.email "[email protected]"
  135. git config --global user.name "Website Deployment Script"
  136. echo "machine github.com login cpuhrsch password $GITHUB_TOKEN" > ~/.netrc
  137. cd website && npm install && GIT_USER=cpuhrsch npm run publish-gh-pages
  138. workflows:
  139. version: 2
  140. build:
  141. jobs:
  142. - "py361"
  143. - "py353"
  144. - "py346"
  145. - "py336"
  146. - "py2713"
  147. - "gcc5"
  148. - "gcc6"
  149. - "gcc7"
  150. - "gcclatest"
  151. - "debian-wheezy"
  152. - "website-build"