blob: a11864061b4bca19d5f0cf049bc8e8572cabf3a3 [file] [log] [blame] [edit]
version: 0.2
#this build spec assumes the ubuntu aws/codebuild/java:openjdk-8 image
phases:
install:
commands:
- sudo add-apt-repository ppa:openjdk-r/ppa
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- sudo apt-get update -y
- sudo apt-get install gcc-7 cmake3 ninja-build -y
pre_build:
commands:
- export CC=gcc-7
build:
commands:
- echo Build started on `date`
- $CODEBUILD_SRC_DIR/codebuild/common-linux.sh
post_build:
commands:
- echo Build completed on `date`
artifacts:
discard-paths: yes
files:
- 'target/surefire-reports/**'
- 'hs_err_pid*'
- 'core*'