forked from ymotongpoo/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
29 lines (28 loc) · 1.05 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
box:
id: ymotongpoo/ubuntu-trusty:wercker
build:
steps:
- script:
name: confirm docker image version.
code: |
cat /etc/lsb-release && uname -a
- script:
name: build default keymap.
cwd: $WERCKER_SOURCE_DIR/keyboard/ergodox_ez
code: |
make clean && make KEYMAP=$TARGET_KEYMAP
- script:
name: move built firmware to output dir.
cwd: $WERCKER_SOURCE_DIR/keyboard/ergodox_ez
code: |
mv ergodox_ez.hex $WERCKER_OUTPUT_DIR
deploy:
steps:
- script:
name: put built hex file to bintray.
code: |
curl -T $WERCKER_SOURCE_DIR/ergodox_ez.hex -u$BINTRAY_USERNAME:$BINTRAY_APIKEY https://api.bintray.com/content/$BINTRAY_USERNAME/generic/ergodox.hex/$WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT/ergodox.hex
- script:
name: publish uploaded hex file.
code: |
curl -X POST -u$BINTRAY_USERNAME:$BINTRAY_APIKEY https://api.bintray.com/content/$BINTRAY_USERNAME/generic/ergodox.hex/$WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT/publish