version: 0.2
phases:
  install:
    commands:
      - add-apt-repository ppa:ubuntu-toolchain-r/test
      - apt-get update -y
      - apt-get install gcc-7 cmake ninja-build -y
  pre_build:
    commands:
      - export CC=gcc-7
  build:
    commands:
      - echo Build started on `date`
      - aws s3 cp s3://aws-crt-test-stuff/setup_proxy_test_env.sh /tmp/setup_proxy_test_env.sh
      - chmod a+xr /tmp/setup_proxy_test_env.sh
      - $CODEBUILD_SRC_DIR/codebuild/linux-integration-tests.sh
  post_build:
    commands:
      - echo Build completed on `date`

