forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 44
/
circle.yml
22 lines (19 loc) · 875 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
machine:
services:
- docker
dependencies:
override:
- docker info
- docker build -f dockerfiles/Dockerfile.ubuntu-trusty-wercker -t ymotongpoo/ubuntu-trusty:wercker .
test:
override:
- echo "build firmware"
- cd $HOME/qmk_firmware/keyboard/ergodox_ez && make KEYMAP=${TARGET_KEYMAP}
deployment:
deploy:
branch: master
commands:
- echo "put built hex file to bintray"
- curl -T $HOME/qmk_firmware/keyboard/ergodox_ez/ergodox_ez.hex -u${BINTRAY_USERNAME}:${BINTRAY_APIKEY} https://api.bintray.com/content/${BINTRAY_USERNAME}/generic/ergodox.hex/${CIRCLE_BRANCH}-circle-${CIRCLE_BUILD_NUM}/ergodox.hex
- echo "publish uploaded hex file"
- curl -X POST -u${BINTRAY_USERNAME}:${BINTRAY_APIKEY} https://api.bintray.com/content/$BINTRAY_USERNAME/generic/ergodox.hex/${CIRCLE_BRANCH}-circle-${CIRCLE_BUILD_NUM}/publish