set -e
export NXF_PLUGINS_DEFAULT=nf-amazon

# Skip test if AWS keys are missing
if [[ ! $AWS_ACCESS_KEY_ID ]]; then
  echo "Skip s3-files test since AWS keys are not available"
  exit 0
fi

#
# run normal mode
#
$NXF_CMD -trace com.upplication.s3fs run nextflow-io/hello \
  -with-trace s3://nextflow-ci/test/trace.txt \
  -with-report s3://nextflow-ci/test/report.html \
  | tee stdout

