#!/usr/bin/env bash
#
# This script is designed to be run inside the container
#

# fail hard and fast even on pipelines
set -eou pipefail

coverage report -m > coverage.txt

if [[ -n $CODECOV_TOKEN ]]; then
  codecov upload-process --plugin=noop -t "$CODECOV_TOKEN"
fi
