Blame test/run

Packit Service eebd6f
#!/bin/sh -e
Packit Service eebd6f
# This is the expected entry point for Cockpit CI; will be called without
Packit Service eebd6f
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
Packit Service eebd6f
Packit Service eebd6f
if [ -n "${TEST_SCENARIO}" ]; then
Packit Service eebd6f
    export TEST_BROWSER="$TEST_SCENARIO"
Packit Service eebd6f
fi
Packit Service eebd6f
Packit Service 9118b1
# overlays are too big for bot's 10GB /tmp tmpfs
Packit Service 9118b1
TEST_OVERLAY_DIR="$(pwd)/tmp/run"
Packit Service 9118b1
Packit Service eebd6f
make check
Packit Service eebd6f
Packit Service eebd6f
# If successful, report code coverage result to codecov.io
Packit Service eebd6f
if [ -f ~/.config/codecov-token ]; then
Packit Service eebd6f
  token=$(cat ~/.config/codecov-token | sed 's/\n//g')
Packit Service eebd6f
  curl --silent localhost:8080/foo.sh | CODECOV_TOKEN=$token bash
Packit Service eebd6f
fi