title: Travis cannot open my .ino sketch file
body: <p>I'm trying to enable travis to build my arduino project.</p>
  
  <p>What I'm able to:</p>
  
  <ul>
  <li>Download the CLI tools</li>
  <li>Execute the arduino command</li>
  </ul>
  
  <p>What's not working:</p>
  
  <ul>
  <li>The arduino CLI keeps exiting with exit code 2. [3]</li>
  </ul>
  
  <p>Relevant output of console:</p>
  
  <pre><code>$ arduino-1.5.2/./arduino --verify --board arduino:avr:uno HomeAutomation_Arduino/HomeAutomation_Arduino.ino
  Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m
  Can't open source sketch!
  The command "arduino-1.5.2/./arduino --verify --board arduino:avr:uno HomeAutomation_Arduino/HomeAutomation_Arduino.ino" exited with 2.
  </code></pre>
  
  <p>[1] I've been following <a href="https://learn.adafruit.com/continuous-integration-arduino-and-you/testing-your-project" rel="nofollow noreferrer">this</a> guide.</p>
  
  <p>[2] View the ENTIRE console log <a href="https://travis-ci.org/dakshsrivastava/HomeAutomation/builds/361118638" rel="nofollow noreferrer">here</a></p>
  
  <p>[3] Arduino exit codes : <a href="https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc#exit-status" rel="nofollow noreferrer">here</a></p>