PACKAGE - CI-UTILS

FUNCTION - BUILD-DIR
Returns the directory that the code was copied into. When not on a known CI platform, the current working directory is returned.

FUNCTION - BRANCH
Returns the name of the branch the build is from, or NIL for unknown and non-ci platforms.

FUNCTION - BUILD-ID
Returns the build id for the given platform. NIL is returned on unsupported platforms.

FUNCTION - COMMIT-ID
Returns the ID of the current commit. For git projects, this is the commit’s SHA. NIL is returned on unsupported platforms.

FUNCTION - PULL-REQUEST-P
Returns whether the build is for a pull/merge request. Unknown and non-ci platforms are considered to not be pull requests. A string containing the pull request number is returned for pull requests

FUNCTION - PLATFORM
Returns the current CI platform. When on a non-ci platform, nil is returned. The following is the symbols for supported platforms

Platform Symbol Name
Travis CI :TRAVIS-CI
Circle CI :CIRCLECI
Appveyor :APPVEYOR
GitLab CI :GITLAB-CI
Bitbucket Pipelines :BITBUCKET-PIPELINES
Azure Pipelines :AZURE-PIPELINES
Github Actions :GITHUB-ACTIONS
unknown ci systems :UNKNOWN-CI

FUNCTION - CIP
Whether lisp is running on a CI platform.


PACKAGE - CI-UTILS/COVERALLS

FUNCTION - COVERALLSP
Whether the current systems has the COVERALLS environmental variable set

MACRO - WITH-COVERALLS (EXCLUDE &BODY BODY)
Wraps the body with the coveralls:with-coveralls macro if coveralls is enabled

FUNCTION - COVERAGE-EXCLUDED
Gets the contents of the COVERAGE_EXCLUDE environemental variable as a list of path strings