mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-15 02:52:53 +00:00
Move sketch to appropriately named subfolder
The Arduino IDE requires that a sketch be located in a folder of the same name. Although the name of the repository does match the sketch name, when GitHub's popular Clone or download > Download ZIP feature is used to download the contents of a repository the branch/tag/commit name is appended to the folder name, causing a mismatch.
When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog:
The file "arduino-canbus-monitor.ino" needs to be inside a sketch folder named "arduino-canbus-monitor".
Create this folder, move the file, and continue?
After clicking "OK" the Arduino IDE currently moves only the file arduino-canbus-monitor.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail:
arduino-canbus-monitor-master\arduino-canbus-monitor\arduino-canbus-monitor.ino:15:21: fatal error: mcp_can.h: No such file or directory
#include "mcp_can.h"
^
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ before_install:
|
||||
- sudo mv arduino-1.6.5 /usr/local/share/arduino
|
||||
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
|
||||
script:
|
||||
- arduino --verify --board arduino:avr:uno arduino-canbus-monitor.ino
|
||||
- arduino --verify --board arduino:avr:uno "${TRAVIS_BUILD_DIR}/arduino-canbus-monitor/arduino-canbus-monitor.ino"
|
||||
# - sonar-scanner
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
@@ -8,7 +8,7 @@ sonar.projectVersion=1.0
|
||||
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
|
||||
# If not set, SonarQube starts looking for source code from the directory containing
|
||||
# the sonar-project.properties file.
|
||||
sonar.sources=.
|
||||
sonar.sources=./arduino-canbus-monitor
|
||||
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
#sonar.sourceEncoding=UTF-8
|
||||
Reference in New Issue
Block a user