| 1 | version: 0.2 |
| 2 | #this buildspec assumes the ubuntu 14.04 trusty image |
| 3 | phases: |
| 4 | install: |
| 5 | commands: |
| 6 | - sudo apt-get update -y |
| 7 | - sudo apt-get update |
| 8 | - sudo apt-get install clang-3.9 cmake3 clang-tidy-3.9 -y |
| 9 | |
| 10 | pre_build: |
| 11 | commands: |
| 12 | - export CC=clang-3.9 |
| 13 | build: |
| 14 | commands: |
| 15 | - echo Build started on `date` |
| 16 | - ./codebuild/common-posix.sh -DCMAKE_EXPORT_COMPILE_COMMANDS=ON |
| 17 | - clang-tidy-3.9 -p=build **/*.c |
| 18 | post_build: |
| 19 | commands: |
| 20 | - echo Build completed on `date` |
| 21 |