Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test Unity projects with Travis CI?

I was following this specific guide: https://jonathan.porta.codes/2015/04/17/automatically-build-your-unity3d-project-in-the-cloud-using-travisci-for-free/ to test my unity project with travis CI but have been running into the same problem and don't understand how to change the 'installer' program to fix this problem:

$ ./Scripts/install.sh
Downloading from     http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/    Unity-5.4.0f3.pkg:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left Speed
100 16433  100 16433    0     0  16498      0 --:--:-- --:--:-- --:--:-- 16498
Installing Unity.pkg
installer: Error the package path specified was invalid: 'Unity.pkg'.
The command "./Scripts/install.sh" failed and exited with 1 during .
Your build has been stopped.

Here are the scripts I wrote using the tutorial: .travis.yml

language: objective-c
osx_image: xcode61
rvm:
- 2.1.2
install:
- ./Scripts/install.sh
script:
- ./Scripts/build.sh

install.sh #! /bin/sh

echo 'Downloading from http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:



curl -o Unity.pkg http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:

echo 'Installing Unity.pkg'
sudo installer -dumplog -package Unity.pkg -target /

Any help for this problem or guidance towards a solution would be greatly appreciated, thanks

like image 258
chillydev Avatar asked Aug 28 '16 05:08

chillydev


People also ask

How do you trigger Travis CI?

Trigger Travis CI builds using the API V3 by sending a POST request to /repo/{slug|id}/requests : Get an API token from your Travis CI settings page. You'll need the token to authenticate most of these API requests.

Which build automation tool can be used with Travis CI?

Travis CI supports parallel testing. It can also be integrated with tools like Slack, HipChat, Email, etc. and get notifications if the build is unsuccessful. Developers can speed up their test suites by executing multiple builds in parallel, across different virtual machines.

Is Travis CI a CI tool?

Travis CI was the first CI as a Service tool. It introduced a new approach to building code in the cloud. This CI tool allows the user to sign up, link their repository, build, as well as test their apps. Travis CI tool can easily integrate with the common cloud repositories like GitHub and Bitbucket.


1 Answers

Remove the colon at the end of the url inside install.sh

curl -o Unity.pkg http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:

Unity-5.4.0f3.pkg:  => Unity-5.4.0f3.pkg
like image 66
Kashif Siddiqui Avatar answered Oct 17 '22 02:10

Kashif Siddiqui