#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # See https://docs.codecov.io/docs/testing-with-docker, also note that it is # critical to set CI=true because codecov-ruby won't detect GitHub Actions # without it per: # https://github.com/codecov/codecov-ruby/blob/484767f1c3d7992a9d7fedd6dc72d35a80d04f70/lib/codecov.rb#L68-L69 docker run $CI_ENV \ -e ENABLE_CODECOV=1 -e CI=true \ -v $DIR/..:/code \ -v vendor/bundle \ -w /code \ openstax/kitchen.ci:latest \ /bin/bash -c "bundle config path vendor/bundle; bundle install; bundle exec rspec"