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.
 
 
 
 
 

290 lines
11 KiB

  1. # Python CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-python/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # specify the version you desire here
  10. # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
  11. - image: circleci/python:2.7.13
  12. # Specify service dependencies here if necessary
  13. # CircleCI maintains a library of pre-built images
  14. # documented at https://circleci.com/docs/2.0/circleci-images/
  15. # - image: circleci/postgres:9.4
  16. environment:
  17. TEST_PLATFORM: "-e megaatmega2560"
  18. working_directory: ~/Marlin
  19. steps:
  20. - checkout
  21. - restore_cache:
  22. paths:
  23. - ~/.platformio
  24. - ~/Marlin/.piolibdeps
  25. keys:
  26. - v1-dependencies-{{ checksum "~/Marlin/platformio.ini" }}
  27. # fallback to using the latest cache if no exact match is found
  28. - v1-dependencies-
  29. - run:
  30. name: install dependencies
  31. command: |
  32. sudo pip install -U platformio
  33. # run tests!
  34. - run:
  35. name: run tests
  36. command: |
  37. #
  38. #
  39. # Fetch the tag information for the current branch
  40. ls -la
  41. git fetch origin --tags
  42. #
  43. # Publish the buildroot script folder
  44. chmod +x buildroot/bin/*
  45. export PATH=`pwd`/buildroot/bin/:${PATH}
  46. # Generate custom version include
  47. generate_version_header_for_marlin ./Marlin/src/inc
  48. cat ./Marlin/src/inc/_Version.h
  49. #
  50. # Backup pins_RAMPS.h
  51. #
  52. cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
  53. #
  54. #################################
  55. # Build all sample configurations
  56. #################################
  57. echo testing megaatmega2560 targets...
  58. export TEST_PLATFORM="-e megaatmega2560"
  59. restore_configs
  60. echo use_example_configs adafruit/ST7565
  61. use_example_configs adafruit/ST7565
  62. build_marlin_pio ./ ${TEST_PLATFORM}
  63. restore_configs
  64. echo use_example_configs BQ/Hephestos
  65. use_example_configs BQ/Hephestos
  66. build_marlin_pio ./ ${TEST_PLATFORM}
  67. restore_configs
  68. echo use_example_configs BQ/Hephestos_2
  69. use_example_configs BQ/Hephestos_2
  70. build_marlin_pio ./ ${TEST_PLATFORM}
  71. restore_configs
  72. echo use_example_configs BQ/WITBOX
  73. use_example_configs BQ/WITBOX
  74. build_marlin_pio ./ ${TEST_PLATFORM}
  75. restore_configs
  76. echo use_example_configs AliExpress/CL-260
  77. use_example_configs AliExpress/CL-260
  78. build_marlin_pio ./ ${TEST_PLATFORM}
  79. restore_configs
  80. echo use_example_configs Cartesio
  81. use_example_configs Cartesio
  82. build_marlin_pio ./ ${TEST_PLATFORM}
  83. restore_configs
  84. echo use_example_configs delta/FLSUN/auto_calibrate
  85. use_example_configs delta/FLSUN/auto_calibrate
  86. build_marlin_pio ./ ${TEST_PLATFORM}
  87. restore_configs
  88. echo use_example_configs delta/FLSUN/kossel_mini
  89. use_example_configs delta/FLSUN/kossel_mini
  90. build_marlin_pio ./ ${TEST_PLATFORM}
  91. restore_configs
  92. echo use_example_configs delta/generic
  93. use_example_configs delta/generic
  94. build_marlin_pio ./ ${TEST_PLATFORM}
  95. restore_configs
  96. echo use_example_configs delta/kossel_mini
  97. use_example_configs delta/kossel_mini
  98. build_marlin_pio ./ ${TEST_PLATFORM}
  99. restore_configs
  100. echo use_example_configs delta/kossel_xl
  101. use_example_configs delta/kossel_xl
  102. build_marlin_pio ./ ${TEST_PLATFORM}
  103. restore_configs
  104. echo use_example_configs Felix
  105. use_example_configs Felix
  106. build_marlin_pio ./ ${TEST_PLATFORM}
  107. restore_configs
  108. echo use_example_configs Felix/DUAL
  109. use_example_configs Felix/DUAL
  110. build_marlin_pio ./ ${TEST_PLATFORM}
  111. restore_configs
  112. echo use_example_configs gCreate/gMax1.5+
  113. use_example_configs gCreate/gMax1.5+
  114. build_marlin_pio ./ ${TEST_PLATFORM}
  115. restore_configs
  116. echo use_example_configs Geeetech/GT2560
  117. use_example_configs Geeetech/GT2560
  118. build_marlin_pio ./ ${TEST_PLATFORM}
  119. restore_configs
  120. echo use_example_configs Geeetech/I3_Pro_X-GT2560
  121. use_example_configs Geeetech/I3_Pro_X-GT2560
  122. build_marlin_pio ./ ${TEST_PLATFORM}
  123. restore_configs
  124. echo use_example_configs Infitary/i3-M508
  125. use_example_configs Infitary/i3-M508
  126. build_marlin_pio ./ ${TEST_PLATFORM}
  127. restore_configs
  128. #
  129. # Disabled due to compile failure on E0_AUTO_FAN_PIN PB8
  130. #
  131. # use_example_configs Malyan/M200
  132. # build_marlin_pio ./ ${TEST_PLATFORM}
  133. # restore_configs
  134. echo use_example_configs Micromake/C1/basic
  135. use_example_configs Micromake/C1/basic
  136. build_marlin_pio ./ ${TEST_PLATFORM}
  137. restore_configs
  138. echo use_example_configs Micromake/C1/enhanced
  139. use_example_configs Micromake/C1/enhanced
  140. build_marlin_pio ./ ${TEST_PLATFORM}
  141. restore_configs
  142. echo use_example_configs RepRapWorld/Megatronics
  143. use_example_configs RepRapWorld/Megatronics
  144. build_marlin_pio ./ ${TEST_PLATFORM}
  145. restore_configs
  146. echo use_example_configs RigidBot
  147. use_example_configs RigidBot
  148. build_marlin_pio ./ ${TEST_PLATFORM}
  149. restore_configs
  150. echo use_example_configs SCARA
  151. use_example_configs SCARA
  152. build_marlin_pio ./ ${TEST_PLATFORM}
  153. restore_configs
  154. echo use_example_configs Velleman/K8200
  155. use_example_configs Velleman/K8200
  156. build_marlin_pio ./ ${TEST_PLATFORM}
  157. restore_configs
  158. echo use_example_configs Velleman/K8400/Dual-head
  159. use_example_configs Velleman/K8400/Dual-head
  160. build_marlin_pio ./ ${TEST_PLATFORM}
  161. restore_configs
  162. echo use_example_configs Velleman/K8400
  163. use_example_configs Velleman/K8400
  164. build_marlin_pio ./ ${TEST_PLATFORM}
  165. restore_configs
  166. echo use_example_configs Wanhao/Duplicator6
  167. use_example_configs Wanhao/Duplicator6
  168. build_marlin_pio ./ ${TEST_PLATFORM}
  169. #
  170. # Disabled due to compile failure on https://github.com/stawel/SlowSoftI2CMaster
  171. #
  172. # - Requires https://github.com/stawel/SlowSoftI2CMaster
  173. # restore_configs
  174. # use_example_configs wt150
  175. # build_marlin_pio ./ ${TEST_PLATFORM}
  176. echo testing anet10 targets...
  177. export TEST_PLATFORM="-e anet10"
  178. restore_configs
  179. echo use_example_configs Anet/A6
  180. use_example_configs Anet/A6
  181. build_marlin_pio ./ ${TEST_PLATFORM}
  182. restore_configs
  183. echo use_example_configs Anet/A8
  184. use_example_configs Anet/A8
  185. build_marlin_pio ./ ${TEST_PLATFORM}
  186. restore_configs
  187. echo use_example_configs Creality/CR-10
  188. use_example_configs Creality/CR-10
  189. build_marlin_pio ./ ${TEST_PLATFORM}
  190. restore_configs
  191. echo use_example_configs Malyan/M150
  192. use_example_configs Malyan/M150
  193. build_marlin_pio ./ ${TEST_PLATFORM}
  194. restore_configs
  195. echo use_example_configs Sanguinololu
  196. use_example_configs Sanguinololu
  197. build_marlin_pio ./ ${TEST_PLATFORM}
  198. restore_configs
  199. echo use_example_configs TinyBoy2
  200. use_example_configs TinyBoy2
  201. build_marlin_pio ./ ${TEST_PLATFORM}
  202. echo testing rambo targets...
  203. export TEST_PLATFORM="-e rambo"
  204. restore_configs
  205. echo use_example_configs AlephObjects/TAZ4
  206. use_example_configs AlephObjects/TAZ4
  207. build_marlin_pio ./ ${TEST_PLATFORM}
  208. echo testing teensy20 targets...
  209. export TEST_PLATFORM="-e teensy20"
  210. #
  211. # Disabled due to Z_MIN_PIN related compile failure
  212. #
  213. # restore_configs
  214. # use_example_configs delta/kossel_pro
  215. # build_marlin_pio ./ ${TEST_PLATFORM}
  216. restore_configs
  217. echo use_example_configs makibox
  218. use_example_configs makibox
  219. build_marlin_pio ./ ${TEST_PLATFORM}
  220. echo testing sanguino_atmega644p targets...
  221. export TEST_PLATFORM="-e sanguino_atmega644p"
  222. restore_configs
  223. echo use_example_configs tvrrug/Round2
  224. use_example_configs tvrrug/Round2
  225. build_marlin_pio ./ ${TEST_PLATFORM}
  226. echo testing LPC1768 targets...
  227. export TEST_PLATFORM="-e LPC1768"
  228. restore_configs
  229. echo use_example_configs FolgerTech/i3-2020
  230. use_example_configs FolgerTech/i3-2020
  231. build_marlin_pio ./ ${TEST_PLATFORM}
  232. restore_configs
  233. echo use_example_configs Mks/Sbase
  234. use_example_configs Mks/Sbase
  235. build_marlin_pio ./ ${TEST_PLATFORM}
  236. #
  237. # Disabled due to numerous compile failures
  238. #
  239. # echo testing STM32F1 targets...
  240. # export TEST_PLATFORM="-e STM32F1"
  241. # restore_configs
  242. # use_example_configs STM32F10
  243. # build_marlin_pio ./ ${TEST_PLATFORM}
  244. # restore_configs
  245. # use_example_configs stm32f103ret6
  246. # build_marlin_pio ./ ${TEST_PLATFORM}
  247. #
  248. # Disabled due do pin related compile failures
  249. #
  250. # echo testing DUE targets...
  251. # export TEST_PLATFORM="-e DUE"
  252. # restore_configs
  253. # use_example_configs UltiMachine/Archim2
  254. # build_marlin_pio ./ ${TEST_PLATFORM}
  255. #
  256. # Remove temp files from dependencies tree prior to caching
  257. rm -rf ~/Marlin/.piolibdeps/_tmp_*
  258. - save_cache:
  259. paths:
  260. - ~/.platformio
  261. - ~/Marlin/.piolibdeps
  262. key: v1-dependencies-{{ checksum "~/Marlin/platformio.ini" }}