InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 902 forks source link

Add test.sh to run certain tests in Docker #1900

Open DavisNT opened 8 months ago

DavisNT commented 8 months ago

Add ability to run build-simulator and test-format tests in Docker.

Syntax with local Docker image is:

docker run --rm -it -v ${PWD}:/sources --user $(id -u):$(id -g) infinitime-build /opt/test.sh build-simulator [repo branch]
docker run --rm -it -v ${PWD}:/sources --user $(id -u):$(id -g) infinitime-build /opt/test.sh test-format [commit]

The repo and branch parameters for build-simulator specify InfiniSim version to use for the test build. The commit parameter for test-format specify base commit/branch/tag to compare against when testing the formatting.

github-actions[bot] commented 8 months ago

Build checks have not completed. Possible reasons for this are:

  1. The checks need to be approved by a maintainer
  2. The branch has conflicts
  3. The firmware build has failed