@@ 0,0 1,21 @@
+image: alpine/edge
+packages:
+ - kicad
+ - zip
+sources:
+ - https://git.sr.ht/~martijnbraam/mosquitto-board
+artifacts:
+ - mosquitto-board/build/pcb.pdf
+ - mosquitto-board/build/schematic.pdf
+ - gerbers.zip
+tasks:
+ - test: |
+ cd mosquitto-board
+ mkdir build
+ kicad-cli sch export pdf --output build/schematic.pdf *.kicad_sch
+ kicad-cli pcb export pdf --output build/pcb.pdf *.kicad_pcb -l F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,B.Paste,F.SilkS,F.Mask,Edge.Cuts
+ mkdir build/gerbers
+ kicad-cli pcb export gerbers --output build/gerbers/ *.kicad_pcb
+ kicad-cli pcb export drill --output build/gerbers/ *.kicad_pcb
+ cd build/gerbers
+ zip -r ../../../gerbers.zip ./*