InfiniTime icon indicating copy to clipboard operation
InfiniTime copied to clipboard

Add test.sh to run certain tests in Docker

Open DavisNT opened this issue 2 years ago • 1 comments

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.

DavisNT avatar Oct 29 '23 17:10 DavisNT

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

github-actions[bot] avatar Oct 29 '23 17:10 github-actions[bot]