Clinkz
Clinkz

Reputation: 726

Travis cannot open my .ino sketch file

I'm trying to enable travis to build my arduino project.

What I'm able to:

What's not working:

Relevant output of console:

$ 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.

[1] I've been following this guide.

[2] View the ENTIRE console log here

[3] Arduino exit codes : here

Upvotes: 0

Views: 55

Answers (1)

per1234
per1234

Reputation: 974

Some versions of the Arduino IDE do not support relative paths to the sketch. 1.5.2 is one of these. You must specify the full path to the sketch, in this case:

"${TRAVIS_BUILD_DIR}/HomeAutomation_Arduino/HomeAutomation_Arduino.ino"

You should note you are more likely to run into these sorts of quirks when using very old versions of the Arduino IDE. 1.5.2 was the very first to support CLI usage and thus likely to have more than its fair share of these and also is missing some features of later IDE versions.

Upvotes: 1

Related Questions