Instruments Unity games with AltTester.
pip3 install git+https://github.com/bigfishgames-external/AltTester-Instrumenter.git
python3 -m altins --version
python3 -m altins --help
options:
-h, --help show this help message and exit
--version show program's version number and exit
--release RELEASE [required] The AltTester version to use.
--buildFile BUILDFILE [required] The build file to modify.
--buildMethod BUILDMETHOD [required] The build method to modify.
--target TARGET [required] The build target (Android or iOS).
--hostname HOSTNAME [optional, default='127.0.0.1'] Specify the hostname for your AltServer (leave blank if running locally)
--hostport PORT [optional, default='13000'] Specify a port for the AltServer
--assets ASSETS [optional, default='Assets'] Specify if there is a different Assets folder
--settings SETTINGS [optional, default='ProjectSettings/EditorBuildSettings.asset'] Specify if there is a different EditorBuildSettings.asset file
--manifest MANIFEST [optional, default='Packages/manifest.json'] Specify if there is a different manifest.json file to modify.
--newt NEWTONSOFT [optional, default='True'] Add newtonsoft to the manifest.
--inputSystem INPUTSYSTEM [optional, default='old'] Specify new or old.
python3 -m altins --release="2.1.0" --buildFile="Assets/Editor/Build/ProjectBuilderAndroid.cs" --buildMethod="Build" --target="Android"
For Evermerge, build file is either "Assets/Editor/Build/ProjectBuilderAndroid.cs" or "Assets/Editor/Build/ProjectBuilderIos.cs", and buildMethod should just be "Build"
pip3 uninstall AltTester-Instrumenter
BFG uses Jenkins for Continuous Integration and Continuous Delivery.
The following is an example of running AltTester-Instrumenter before a game build.
pipeline {
parameters {
booleanParam name: 'Test_Instrument', description: 'For E2E Test Builds', defaultValue: false
}
stages {
stage('Android Build') {
steps {
script {
if (params.Test_Instrument) {
sh 'pip3 install git+https://github.com/bigfishgames-external/AltTester-Instrumenter.git'
sh 'python3 -m altins --release="2.1.0" --buildFile="Assets/Editor/Build/ProjectBuilderAndroid.cs" --buildMethod="Build" --target="Android"'
}
sh '$UNITY_EXEC -buildTarget Android -executeMethod Build.BuildAndroid $UNITY_PARAMS'
}
}
}
}
}