Skip to content
🔧 Bash scripts for running Unity tests on continuous integration services
Shell JavaScript Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
data
screenshots
utils
.eslintrc
.gitignore
.travis.yml
LICENSE
Makefile
README.md
package.json

README.md

Unity CI Tools

Bash scripts for running Unity tests on continuous integration services

Build Status Join the chat at https://discord.gg/nNtFsfd

Setup

Create a .travis.yml File

sudo: required
language: objective-c
osx_image: xcode10.2
rvm:
  - 2.6.3
cache:
  timeout: 86400 # 1 day
  directories:
    - /Users/travis/cache/
    - /Users/travis/.rvm/
install:
  - bash <(curl -fsSL https://raw.githubusercontent.com/neogeek/unity-ci-tools/master/bin/install.sh)
script:
  - bash <(curl -fsSL https://raw.githubusercontent.com/neogeek/unity-ci-tools/master/bin/auth.sh)
  - bash <(curl -fsSL https://raw.githubusercontent.com/neogeek/unity-ci-tools/master/bin/test.sh)
  - bash <(curl -fsSL https://raw.githubusercontent.com/neogeek/unity-ci-tools/master/bin/deauth.sh)

Create a Makefile File

test: SHELL:=/bin/bash
test:
	bash <(curl -fsSL https://raw.githubusercontent.com/neogeek/unity-ci-tools/master/bin/test.sh)

clean:
	git clean -xdf

Setup Environment Variables on Travis

Add the following variables in the settings panel of your project on https://travis-ci.org/:

Key Description Required
UNITY_INSTALLER_HASH Hash of editor installer. To be used to version. See editor installers. No
UNITY_INSTALLER_VERSION Version of editor installer. To be used with hash. See editor installers. No
UNITY_INSTALLER_URL Full URL of editor installer. See editor installers. No
UNITY_SERIAL The serial key found at https://id.unity.com/en/subscriptions. Keys are only avalible with a Plus or Pro Subscription Yes
UNITY_USERNAME Your email address used to log into https://unity.com/. Yes
UNITY_PASSWORD Your password used to log into https://unity.com/. Yes

You can’t perform that action at this time.