version: 0.2 #this buildspec assumes the ubuntu 14 image phases: install: commands: - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main" - sudo apt-get update -y - sudo apt-get install clang-6.0 cmake3 clang-tidy-6.0 clang-format-6.0 -y -f - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/tmp/awscliv2.zip" - unzip -q -d /tmp /tmp/awscliv2.zip - sudo /tmp/aws/install pre_build: commands: - export CC=clang-6.0 - export CXX=clang++-6.0 - export CLANG_FORMAT=clang-format-6.0 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 - sudo chmod a+xr /tmp/setup_proxy_test_env.sh - ./codebuild/common-posix.sh -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_FUZZ_TESTS=ON - ./format-check.sh post_build: commands: - echo Build completed on `date`