.gitlab-ci.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. stages:
  2. - test
  3. - build
  4. - deploy
  5. Tests:
  6. stage: test
  7. variables:
  8. GIT_SUBMODULE_STRATEGY: recursive
  9. tags:
  10. - linux
  11. image: ubuntu:18.10
  12. before_script:
  13. - apt-get update -qy
  14. - apt-get install -y build-essential avr-libc binutils-arm-none-eabi binutils-avr dfu-programmer dfu-util gcc gcc-arm-none-eabi gcc-avr git libnewlib-arm-none-eabi unzip wget zip
  15. - avr-gcc --version
  16. - uname -a
  17. script:
  18. - make test:all
  19. - make planck/rev6:default
  20. QMK Firmware Defaults:
  21. stage: deploy
  22. variables:
  23. GIT_SUBMODULE_STRATEGY: recursive
  24. tags:
  25. - linux
  26. image: ubuntu:18.10
  27. before_script:
  28. - apt-get update -qy
  29. - apt-get install -y build-essential avr-libc binutils-arm-none-eabi binutils-avr dfu-programmer dfu-util gcc gcc-arm-none-eabi gcc-avr git libnewlib-arm-none-eabi unzip wget zip
  30. - avr-gcc --version
  31. - uname -a
  32. script:
  33. - make test:all
  34. - make all:default -j16
  35. Drashna Firmware:
  36. stage: build
  37. variables:
  38. GIT_SUBMODULE_STRATEGY: recursive
  39. tags:
  40. - linux
  41. image: ubuntu:18.10
  42. before_script:
  43. - apt-get update -qy
  44. - apt-get install -y build-essential avr-libc binutils-arm-none-eabi binutils-avr dfu-programmer dfu-util gcc gcc-arm-none-eabi gcc-avr git libnewlib-arm-none-eabi unzip wget zip
  45. - avr-gcc --version
  46. script:
  47. - make iris/rev2:drashna iris/rev2:drashna_old ergodox_ez:drashna ergodox_ez:drashna_glow viterbi/rev1:drashna orthodox/rev1:drashna orthodox/rev3:drashna crkbd:drashna planck/light:drashna planck/rev6:drashna fractal:drashna
  48. artifacts:
  49. name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
  50. paths:
  51. - ./*.hex
  52. - ./*.bin
  53. expire_in: 1 month
  54. Firmware Deploy:
  55. stage: deploy
  56. dependencies:
  57. - Drashna Firmware
  58. variables:
  59. GIT_SUBMODULE_STRATEGY: recursive
  60. tags:
  61. - linux
  62. image: ubuntu:18.10
  63. before_script:
  64. - apt-get update -qy
  65. - apt-get install -y build-essential avr-libc binutils-arm-none-eabi binutils-avr dfu-programmer dfu-util gcc gcc-arm-none-eabi gcc-avr git libnewlib-arm-none-eabi unzip wget zip
  66. - avr-gcc --version
  67. script:
  68. - make iris/rev2:drashna:production iris/rev2:drashna_old:production ergodox_ez:drashna ergodox_ez:drashna_glow viterbi/rev1:drashna:production orthodox/rev1:drashna:production orthodox/rev3:drashna:production crkbd:drashna:production planck/light:drashna planck/rev6:drashna fractal:drashna:production
  69. artifacts:
  70. name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
  71. paths:
  72. - ./*.hex
  73. - ./*.bin
  74. expire_in: 1 month