diff --git a/README.md b/README.md index a87efb0..677b6b0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ESP32 driver for Microchip [MCP3204](https://www.microchip.com/en-us/product/MCP ## Documentation -Everything is on the [wiki](https://github.com/gfurtadoalmeida/esp32-driver-mcp320x/wiki). +Everything is at the [docs](/docs) folder. ## Code Size diff --git a/project.ps1 b/project.ps1 new file mode 100644 index 0000000..cde9228 --- /dev/null +++ b/project.ps1 @@ -0,0 +1,24 @@ +$ProjectFolder = $PSScriptRoot +$EspIdfDockerImage = 'gfurtadoalmeida/esp32-docker-sonar:v5.1' + +switch ($args[0]) { + 'build' { + &docker.exe run --rm --env LC_ALL='C.UTF-8' -v ${ProjectFolder}:/project -w /project ${EspIdfDockerImage} idf.py build + } + 'build-test' { + &docker.exe run --rm --env LC_ALL='C.UTF-8' -v ${ProjectFolder}:/project -w /project ${EspIdfDockerImage} idf.py build -C ./test + } + 'clean' { + &docker.exe run --rm --env LC_ALL='C.UTF-8' -v ${ProjectFolder}:/project -w /project ${EspIdfDockerImage} idf.py fullclean + } + 'clean-test' { + &docker.exe run --rm --env LC_ALL='C.UTF-8' -v ${ProjectFolder}:/project -w /project ${EspIdfDockerImage} idf.py fullclean -C ./test + } + Default { + Write-Host "Command not recognized. Valid commands:" + Write-Host "`t* build: build the main project" + Write-Host "`t* build-test: build the test project" + Write-Host "`t* clean: clean the main project build files" + Write-Host "`t* clean-test: clean the test project build files" + } +}