|
4 | 4 | emulator-build-test: |
5 | 5 | docker: |
6 | 6 | - image: circleci/python:3.7 # upgrade to cimg/python:3.12 if you like |
| 7 | + environment: |
| 8 | + # Exact 7.14.2 production-code baseline. Later firmware commits on the |
| 9 | + # release branch change only CI/reporting and the durable Python pin. |
| 10 | + FIRMWARE_SHA: 5109f395413647df47237b8e69ad541faacb29df |
7 | 11 | steps: |
8 | 12 | # ──────────────────────────────────────────────────────────────── |
9 | | - # 1) Clone the current branch of python-keepkey via HTTPS |
| 13 | + # 1) Fetch the exact triggering python-keepkey commit via HTTPS |
10 | 14 | # ──────────────────────────────────────────────────────────────── |
11 | 15 | - run: |
12 | | - name: Clone python-keepkey (current branch) |
| 16 | + name: Checkout exact python-keepkey revision |
13 | 17 | command: | |
14 | | - git clone --depth 1 -b "$CIRCLE_BRANCH" https://github.com/keepkey/python-keepkey.git .pykk |
15 | | - cd .pykk && git submodule update --init --recursive |
| 18 | + git init .pykk |
| 19 | + git -C .pykk remote add origin https://github.com/keepkey/python-keepkey.git |
| 20 | + git -C .pykk fetch --depth 1 origin "$CIRCLE_SHA1" |
| 21 | + git -C .pykk checkout --detach FETCH_HEAD |
| 22 | + git -C .pykk submodule update --init --recursive |
16 | 23 |
|
17 | 24 | # ──────────────────────────────────────────────────────────────── |
18 | 25 | # 2) Grab firmware repo and inject our fresh python-keepkey copy |
|
27 | 34 | # Move python-keepkey out of the way |
28 | 35 | mv .pykk ../ |
29 | 36 |
|
30 | | - # Clone firmware repository (expects $FIRMWARE_REPO env var) |
31 | | - git clone --depth 1 -b master "$FIRMWARE_REPO" . |
| 37 | + # Fetch the exact reviewed 7.14.2 production-code baseline. |
| 38 | + git init . |
| 39 | + git remote add origin "$FIRMWARE_REPO" |
| 40 | + git fetch --depth 1 origin "$FIRMWARE_SHA" |
| 41 | + git checkout --detach FETCH_HEAD |
32 | 42 |
|
33 | 43 | # Initialise firmware submodules |
34 | 44 | git submodule update --init --recursive |
|
0 commit comments