Provides Unity in Docker image.
Useful for continuous integration jobs.
docker pull -t unityImage stanov/unity:2020.1.10f1
docker run unityImage unity -runTests -testPlatform editmode
docker run unityImage unity -runTests -testPlatform playmode
Note: The activation script assumes that you don't use Unity for commercial purposes. If it is not true, don't use this image.
- Downloads and installs Unity in Ubuntu image.
- Pushes the image to Docker Hub as
stanov/unity:{version}-no-license. - Activates the image by a free license.
- Pushes activated image to Docker Hub as
stanov/unity:{version}.
- Fork the repo.
- Modify your Docker Hub credentials.
- Modify the version variable.
- Configure Travis CI
- Add your Unity credentials to Travis CI variables (
UNITY_EMAILandUNITY_PASSWORD)- Separate Unity account is preferred.
- Enable Unity TFA and add recovery code to the
UNITY_RECOVERY_CODETravis variable.
- Add your Unity credentials to Travis CI variables (
- Run in Travis CI.
- Pull image from your Docker Hub repo.