]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/.gitlab-ci.yml
Keymap: Update for Drashna code - Proton C Prep Edition (#4708)
[qmk_firmware.git] / users / drashna / .gitlab-ci.yml
1 stages:
2   - test
3   - build
4   - deploy
5
6 Tests:
7   stage: test
8   variables:
9     GIT_SUBMODULE_STRATEGY: recursive
10   tags:
11     - linux
12   image: ubuntu:18.10
13   before_script:
14     - apt-get update -qy
15     - 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
16     - avr-gcc --version
17     - uname -a
18   script:
19     - make test:all
20     - make planck/rev6:default
21
22 QMK Firmware Defaults:
23   stage: deploy
24   variables:
25     GIT_SUBMODULE_STRATEGY: recursive
26   tags:
27     - linux
28   image: ubuntu:18.10
29   before_script:
30     - apt-get update -qy
31     - 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
32     - avr-gcc --version
33     - uname -a
34   script:
35     - make test:all
36     - make all:default -j16
37
38 Drashna Firmware:
39   stage: build
40   variables:
41     GIT_SUBMODULE_STRATEGY: recursive
42   tags:
43     - linux
44   image: ubuntu:18.10
45   before_script:
46     - apt-get update -qy
47     - 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
48     - avr-gcc --version
49   script:
50     - 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
51   artifacts:
52     name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
53     paths:
54       - ./*.hex
55       - ./*.bin
56     expire_in: 1 month
57
58 Firmware Deploy:
59   stage: deploy
60   dependencies:
61     - Drashna Firmware
62   variables:
63     GIT_SUBMODULE_STRATEGY: recursive
64   tags:
65     - linux
66   image: ubuntu:18.10
67   before_script:
68     - apt-get update -qy
69     - 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
70     - avr-gcc --version
71   script:
72     - 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
73   artifacts:
74     name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
75     paths:
76       - ./*.hex
77       - ./*.bin
78     expire_in: 1 month