Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created September 25, 2020 23:01
Show Gist options
  • Save ifnull/2d430f07c3336fcf71ae21f8068cce85 to your computer and use it in GitHub Desktop.
Save ifnull/2d430f07c3336fcf71ae21f8068cce85 to your computer and use it in GitHub Desktop.
Continuous Integration for Unity with CircleCI - Sample File
mkdir /.circleci/;
docker run -it --rm \\
--env UNITY_USERNAME \\
--env UNITY_PASSWORD \\
--env "TEST_PLATFORM=linux" \\
--workdir "/root/project/.circleci/" \\
--volume "$(pwd):/root/project" \\
gableroux/unity3d:$UNITY_VERSION \\
bash -c '/opt/Unity/Editor/Unity -quit -nographics -logFile /tmp/unity-createManualActivationFile.log -batchmode -createManualActivationFile -username "$UNITY_USERNAME" -password "$UNITY_PASSWORD"; find -name "Unity*" -exec mv {} unity3d.alf \\;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment