diff options
author | Chris Kay <chris.kay@arm.com> | 2018-08-07 11:59:34 +0100 |
---|---|---|
committer | davidcunado-arm <david.cunado@arm.com> | 2018-08-16 14:54:46 +0100 |
commit | 2b0f081b2c8320dbee92341d87620b13ed755d46 (patch) | |
tree | 2ba1e61a6632cfa6b16643f2aab7798d13e926b0 /tools | |
parent | b47374d5432cd7104dae39f5f080bc78287d28ee (diff) |
tools: Update CI script
This commit moves PEP8 to PyCodeStyle and ensures the build environment
for each compilation is using the correct toolchain.
Change-Id: I7c26c94c6b1d2cc072eda80307246a2ae21c1c0f
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci.py | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/tools/ci.py b/tools/ci.py index c0e276b1..b31a5d3f 100755 --- a/tools/ci.py +++ b/tools/ci.py @@ -37,43 +37,55 @@ def main(): result = check_doc.main() results.append(('Check doc', result)) - result = subprocess.call('pep8 tools/', shell=True) - results.append(('PEP8', result)) + result = subprocess.call('python -m pycodestyle tools/', shell=True) + results.append(('PyCodeStyle', result)) banner('Build and run framework tests') - result = subprocess.call('make clean test', shell=True) + result = subprocess.call('CC=gcc make clean test', shell=True) results.append(('Framework tests', result)) banner('Test building the framework library') - cmd = 'CROSS_COMPILE= BS_FIRMWARE_CPU=host make lib-framework' + cmd = \ + 'CC=gcc CROSS_COMPILE= BS_FIRMWARE_CPU=host ' \ + 'make clean lib-framework' result = subprocess.call(cmd, shell=True) - results.append(('Framework build (host)', result)) + results.append(('Framework build (Host, GCC)', result)) - cmd = 'CROSS_COMPILE=arm-none-eabi- BS_FIRMWARE_CPU=cortex-m3 make '\ - 'lib-framework' + cmd = \ + 'CC=arm-none-eabi-gcc CROSS_COMPILE=arm-none-eabi- ' \ + 'BS_FIRMWARE_CPU=cortex-m3 ' \ + 'make clean lib-framework' result = subprocess.call(cmd, shell=True) - results.append(('Framework build (Cortex-M3)', result)) + results.append(('Framework build (Cortex-M3, GCC)', result)) banner('Test building arch library') - cmd = 'CROSS_COMPILE=arm-none-eabi- BS_FIRMWARE_CPU=cortex-m3 make '\ - 'lib-arch' + cmd = \ + 'CC=arm-none-eabi-gcc CROSS_COMPILE=arm-none-eabi- ' \ + 'BS_FIRMWARE_CPU=cortex-m3 ' \ + 'make clean lib-arch' result = subprocess.call(cmd, shell=True) - results.append(('Arch build (Cortex-M3)', result)) + results.append(('Arch build (Cortex-M3, GCC)', result)) banner('Test building host product') - cmd = 'CROSS_COMPILE= PRODUCT=host make ' + cmd = \ + 'CC=gcc CROSS_COMPILE= ' \ + 'PRODUCT=host ' \ + 'make clean all' result = subprocess.call(cmd, shell=True) - results.append(('Product host build', result)) + results.append(('Product host build (GCC)', result)) banner('Test building sgm775 product') - cmd = 'CROSS_COMPILE=arm-none-eabi- PRODUCT=sgm775 make' + cmd = \ + 'CC=arm-none-eabi-gcc CROSS_COMPILE=arm-none-eabi- ' \ + 'PRODUCT=sgm775 ' \ + 'make clean all' result = subprocess.call(cmd, shell=True) - results.append(('Product sgm775 build', result)) + results.append(('Product sgm775 build (GCC)', result)) banner('Tests summary') |