| 1 | version: 0.2 |
| 2 | #this build spec assumes the ubuntu 14.04 trusty image |
| 3 | phases: |
| 4 | install: |
| 5 | commands: |
| 6 | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test |
| 7 | - sudo apt-get update -y |
| 8 | - sudo apt-get install gcc-5 cmake3 -y |
| 9 | pre_build: |
| 10 | commands: |
| 11 | - export CC=gcc-5 |
| 12 | build: |
| 13 | commands: |
| 14 | - echo Build started on `date` |
| 15 | - ./codebuild/common-posix.sh |
| 16 | post_build: |
| 17 | commands: |
| 18 | - echo Build completed on `date` |
| 19 |