Git Product home page Git Product logo

unity3d-travis-ci's Introduction

unity3d-travis-ci

Build Status unity version

A simple example on how to use Travis-CI to build, test, and deploy a Unity Package to a Github Release. The example Unity Package is a scene with a cube bouncing.

It works by using a Mac OS X version of Unity. This version does not require signing in to build a unity package (unlike the Windows and Linux versions). Travis-CI then builds the project as a Windows 64-bit player and runs test cases against the player. See https://docs.unity3d.com/Manual/testing-editortestsrunner.html for executing a test script in a Unity build. Then a Unity package is built and deployed to a GitHub release when all test cases successfully pass.

I recommend reading a more detailed explaination on how to do this through this blog post: https://hackernoon.com/writing-an-open-source-unity-package-877bad3c8913

Configuration

Do configure the .travis.yml file to your needs:

  • TRAVIS_TAG - the GitHub release tag to deploy, if a release already exists with the same tag the release ZIP folder will be replaced
  • UNITY_PROJECT_NAME - the name of the release, the ZIP folder will be named $UNITY_PROJECT_NAME-v$TRAVIS_TAG

Picking a Unity Version

To choose a different Unity version to compile with, first visit the Unity Download Archive and get the download URL for the following:

  • The Unity Editor (not installer) Mac OS package
  • The Windows Target Support Mac OS package (click on Release Notes for a list of links)

Then go to travis-build\install_unity.sh and add these URLs to the respective enviroment variables: UNITY_OSX_PACKAGE_URL and UNITY_WINDOWS_TARGET_PACKAGE_URL

Other notes

It is possible to upgrade the version of Unity used in Travis-CI. See install_unity.sh. Not all Unity versions may be supported.

unity3d-travis-ci's People

Contributors

kevinta893 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.