Skip to content

Commit d881c2f

Browse files
authored
Merge pull request #5 from coryleach/dev
Adding Travis-CI
2 parents 5f08dae + 0974fa6 commit d881c2f

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: objective-c
2+
os: osx
3+
osx_image: xcode11.2
4+
branches:
5+
only:
6+
- master
7+
cache:
8+
timeout: 86400
9+
directories:
10+
- $HOME/unity_download_cache/ #Cache unity installer files
11+
- $HOME/project_cache/ #Cache for created unity projects
12+
before_install:
13+
- bash <(curl -fsSL https://raw.githubusercontent.com/coryleach/UnityTravisCI/master/bin/before-install.sh)
14+
install:
15+
- ./install.sh
16+
- source ./find-unity.sh #source this because it exports required env vars
17+
before_script:
18+
- ./get-license.sh
19+
script:
20+
- source ./setup-project.sh #source this because it exports project path
21+
- ./run-tests.sh playmode
22+
after_success:
23+
- ./return-license.sh
24+
- ./clean-project.sh
25+
after_failure:
26+
- ./return-license.sh
27+
- ./clean-project.sh
28+

0 commit comments

Comments
 (0)