diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..34a4b24 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: objective-c +os: osx +osx_image: xcode11.2 +branches: + only: + - master +cache: + timeout: 86400 + directories: + - $HOME/unity_download_cache/ #Cache unity installer files + - $HOME/project_cache/ #Cache for created unity projects +before_install: + - bash <(curl -fsSL https://raw.githubusercontent.com/coryleach/UnityTravisCI/master/bin/before-install.sh) +install: + - ./install.sh + - source ./find-unity.sh #source this because it exports required env vars +before_script: + - ./get-license.sh +script: + - source ./setup-project.sh #source this because it exports project path + - ./run-tests.sh editmode + - ./run-tests.sh playmode +after_success: + - ./return-license.sh + - ./clean-project.sh +after_failure: + - ./return-license.sh + - ./clean-project.sh + diff --git a/README.md b/README.md index 157dd8f..2467471 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@

Gameframe.Async 👋

+[![Build Status](https://travis-ci.org/coryleach/UnityAsync.svg?branch=master)](https://travis-ci.org/coryleach/UnityAsync) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/d2749fdbc70f422a9d1efccb56d48bff)](https://www.codacy.com/manual/coryleach/UnityAsync?utm_source=github.com&utm_medium=referral&utm_content=coryleach/UnityAsync&utm_campaign=Badge_Grade) ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/coryleach/UnityAsync?include_prereleases) [![openupm](https://img.shields.io/npm/v/com.gameframe.async?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gameframe.async/)