• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: 0.2
2#this build spec assumes the ubuntu aws/codebuild/java:openjdk-8 image
3phases:
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 ninja-build -y
9  pre_build:
10    commands:
11      - export CC=gcc-5
12  build:
13    commands:
14      - echo Build started on `date`
15      - $CODEBUILD_SRC_DIR/codebuild/common-linux.sh
16  post_build:
17    commands:
18      - echo Build completed on `date`
19
20artifacts:
21  discard-paths: yes
22  files: 
23    - 'target/surefire-reports/**'
24    - 'hs_err_pid*'
25    - 'core*'
26