Skip to content

Environment variables

Set automatically on GitHub Actions, CircleCI, Semaphore, Buildkite and RWX. Set them yourself on any other provider.

VariableRequiredMeaning
SELECTIVE_API_KEYYesThe suite’s API key.
SELECTIVE_PLATFORMYesShort name of the CI provider.
SELECTIVE_RUN_IDYesOne run of the suite; stable across reruns, new per commit.
SELECTIVE_RUN_ATTEMPTYesIncrements per rerun of the same run.
SELECTIVE_RUNNER_IDYesThe node; stable across runs and reruns.
SELECTIVE_BRANCHYesBranch being built.
SELECTIVE_SHAYesHead commit.
SELECTIVE_GIT_REPOYesowner/repo.
SELECTIVE_GIT_PROVIDERYesgithub, gitlab or bitbucket.
SELECTIVE_BASE_SHANoBase commit for the diff.
SELECTIVE_TARGET_BRANCHNoBranch the change merges into.
SELECTIVE_PR_TITLENoShown in the dashboard.
SELECTIVE_ACTORNoShown in the dashboard.
VariableMeaning
SELECTIVE_TEST_MAP_RECORD=1Record a test map on this run.
SELECTIVE_TEST_MAP_DISABLE=1Run the full suite on this run and record nothing.
SELECTIVE_TEST_MAP_IGNORE=dir1,dir2Extra directories to ignore when recording and selecting.

Passed to bundle exec selective rspec or bundle exec selective minitest; everything else is forwarded to the framework.

FlagMeaning
--debugVerbose connection and scheduling output.
--logWrite the runner log to a file.
VariableMeaning
SELECTIVE_TOKENAPI token; overrides any stored login, never written to disk.
SELECTIVE_HOSTServer, when not app.selective.ci.
SELECTIVE_CONFIG_DIRConfig directory, default ~/.config/selective.