1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-16 00:52:36 +02:00
Files
Grbl_Esp32/build-all.py
Mitch Bradley f27f29ba99 Removed add-on configurations
The new Spindle Class is a much better solution to
the problem that add-on's were intended to address.
2020-04-22 14:51:48 -10:00

31 lines
1.0 KiB
Python
Executable File

#!/usr/bin/env python2
# Note: If you experience random errors running this script within
# VSCode, try running it from a regular terminal window. Some VSCode
# extensions seem to randomly interfere with the files that platformio
# uses during compilation.
# Compile Grbl_ESP32 for each of the machines defined in Machines/ .
# Add-on files are built on top of a single base.
# This is useful for automated testing, to make sure you haven't broken something
# The output is filtered so that the only lines you see are a single
# success or failure line for each build, plus any preceding lines that
# contain the word "error". If you need to see everything, for example to
# see the details of an errored build, include -v on the command line.
from builder import buildMachine
import os, sys
cmd = ['platformio','run']
verbose = '-v' in sys.argv
numErrors = 0
for name in os.listdir('Grbl_Esp32/Machines'):
exitCode = buildMachine(name, verbose=verbose)
if exitCode != 0:
numErrors += 1
sys.exit(numErrors)