message: Use s3 bucket to publish coverage reports
diff: steps:
  - command: |
  - echo "+++ :hammer: Building" && \
  + echo "--- :hammer: Building" && \
  /usr/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_COMPILER=clang-4.0 -DWASM_ROOT=/root/opt/wasm -DOPENSSL_ROOT_DIR=/usr/include/openssl -DBUILD_MONGO_DB_PLUGIN=true -DENABLE_COVERAGE_TESTING=true -DBUILD_DOXYGEN=false && \
  /usr/bin/ninja
  - echo "--- :spiral_note_pad: Generating Code Coverage Report" && \
  + echo "+++ :spiral_note_pad: Generating Code Coverage Report" && \
  /usr/bin/ninja EOS_ut_coverage && \
  - tar -pzcf report.tar.gz EOS_ut_coverage/
  + echo "--- :arrow_up: Publishing Code Coverage Report" && \
  + buildkite-agent artifact upload "EOS_ut_coverage/**/*" s3://eosio-coverage/$BUILDKITE_JOB_ID
  label: ":spiral_note_pad: Generate Report"
  agents:
  - "role=linux-coverage"
  - artifact_paths: "report.tar.gz"
  plugins:
  docker#v1.1.1:
  image: "eosio/ci:ubuntu18"
  