ios-agent
CodeScope agent for iOS (Objective-C and Swift)
Usage
- Install via CocoaPods, adding the
Codescope
pod to the test target in yourPodfile
. For example:
target 'MyAppTests' do
pod 'Codescope'
pod 'Codescope/CocoaLumberjack' # (optional) for CocoaLumberjack support
end
- Configure your test target and CI build environment variables, depending on your provider:
Add the following environment variables to your test target (instructions):
Key | Value |
---|---|
CODESCOPE_APIKEY |
$(CODESCOPE_APIKEY) |
CODESCOPE_API_ENDPOINT |
$(CODESCOPE_API_ENDPOINT) |
CODESCOPE_COMMIT_SHA |
$(GIT_COMMIT) |
CODESCOPE_REPOSITORY |
$(GIT_URL) |
CODESCOPE_SOURCE_ROOT |
$(WORKSPACE) |
After this, configure your Jenkins build to add the following environment variables:
Key | Value |
---|---|
CODESCOPE_APIKEY |
The API key generated from the CodeScope UI |
CODESCOPE_API_ENDPOINT |
The API endpoint of your CodeScope installation |
Add the following environment variables to your test target (instructions):
Key | Value |
---|---|
CODESCOPE_APIKEY |
$(CODESCOPE_APIKEY) |
CODESCOPE_API_ENDPOINT |
$(CODESCOPE_API_ENDPOINT) |
CODESCOPE_COMMIT_SHA |
$(CIRCLE_SHA1) |
CODESCOPE_REPOSITORY |
$(CIRCLE_REPOSITORY_URL) |
CODESCOPE_SOURCE_ROOT |
$(CIRCLE_WORKING_DIRECTORY) |
After this, configure your CircleCI project to add the following environment variables (instructions):
Key | Value |
---|---|
CODESCOPE_APIKEY |
The API key generated from the CodeScope UI |
CODESCOPE_API_ENDPOINT |
The API endpoint of your CodeScope installation |