From b6a9007d13963b4d1c6ec9fe07c7bfb51f9a2f56 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 22 Apr 2019 18:11:04 -0500 Subject: [PATCH 1/5] Add Fedora tests --- .travis-fedora-build/Dockerfile | 7 +++ .travis-fedora-build/preferences.txt | 77 ++++++++++++++++++++++++++++ .travis-fedora-build/run.sh | 5 ++ .travis.yml | 11 ++++ 4 files changed, 100 insertions(+) create mode 100644 .travis-fedora-build/Dockerfile create mode 100644 .travis-fedora-build/preferences.txt create mode 100755 .travis-fedora-build/run.sh diff --git a/.travis-fedora-build/Dockerfile b/.travis-fedora-build/Dockerfile new file mode 100644 index 0000000..b80beca --- /dev/null +++ b/.travis-fedora-build/Dockerfile @@ -0,0 +1,7 @@ +FROM fedora:latest +RUN dnf install -y arduino cmake make redhat-lsb-core git +RUN mkdir -p /root/.arduino15 /root/Arduino/libraries +RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo +COPY preferences.txt /root/.arduino15/preferences.txt +COPY run.sh /run.sh +CMD /run.sh \ No newline at end of file diff --git a/.travis-fedora-build/preferences.txt b/.travis-fedora-build/preferences.txt new file mode 100644 index 0000000..72890f7 --- /dev/null +++ b/.travis-fedora-build/preferences.txt @@ -0,0 +1,77 @@ +board=yun +browser=mozilla +build.warn_data_percentage=75 +console=true +console.auto_clear=true +console.error.file=stderr.txt +console.length=500 +console.lines=4 +console.output.file=stdout.txt +editor.antialias=true +editor.auto_close_braces=true +editor.caret.blink=true +editor.code_folding=false +editor.divider.size=0 +editor.external=false +editor.font=Monospaced,plain,12 +editor.indent=true +editor.invalid=false +editor.keys.alternative_cut_copy_paste=true +editor.keys.home_and_end_beginning_end_of_doc=false +editor.keys.shift_backspace_is_delete=true +editor.languages.current= +editor.linenumbers=false +editor.save_on_verify=true +editor.tabs.expand=true +editor.tabs.size=2 +editor.window.height.default=600 +editor.window.height.min=290 +editor.window.width.default=500 +editor.window.width.min=400 +export.applet.separate_jar_files=false +export.application.fullscreen=false +export.application.platform=true +export.application.stop=true +export.delete_target_folder=true +gui.scale=auto +last.ide.1.8.9.daterun=1555970130 +last.ide.1.8.9.hardwarepath=/usr/share/arduino/hardware +last.screen.height=1028 +last.screen.width=1680 +last.sketch.count=0 +last.sketch.default.location=590,214,500,592,397,0 +last.sketch.default.path=/tmp/untitled309991618.tmp/sketch_apr22a/sketch_apr22a.ino +launcher=xdg-open +platform.auto_file_type_associations=true +preferences.readonly=false +preproc.color_datatype=true +preproc.enhanced_casting=true +preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.* +preproc.output_parse_tree=false +preproc.save_build_files=false +preproc.substitute_floats=true +preproc.substitute_unicode=true +preproc.web_colors=true +programmer=arduino:avrispmkii +run.display=1 +run.options= +run.options.memory=false +run.options.memory.initial=64 +run.options.memory.maximum=256 +run.present.bgcolor=#666666 +run.present.exclusive=false +run.present.stop.color=#cccccc +serial.databits=8 +serial.debug_rate=9600 +serial.line_ending=1 +serial.parity=N +serial.stopbits=1 +sketchbook.path=/root/Arduino +software=ARDUINO +target_package=archlinux-arduino +target_platform=avr +update.check=true +update.id=4828131701236159116 +update.last=1555970134196 +upload.using=bootloader +upload.verify=true diff --git a/.travis-fedora-build/run.sh b/.travis-fedora-build/run.sh new file mode 100755 index 0000000..3498102 --- /dev/null +++ b/.travis-fedora-build/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh +mkdir build +cd build +cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ +make \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index fa4e231..76f1b69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,17 @@ env: matrix: - ARDUINO_SDK_VERSION=1.6.10 - ARDUINO_SDK_VERSION=1.8.7 +matrix: + include: + - os: linux + service: docker + env: TEST_FEDORA=TRUE + addons: {} + before_install: + - docker build -t fedorabuild .travis-fedora-build + install: [] + script: + - docker run -v "$TRAVIS_BUILD_DIR/cmake":/cmake -v "$TRAVIS_BUILD_DIR/examples":/examples fedorabuild cache: directories: - $HOME/$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION From b42f74bfd1375d4e25a13f22061bba7a9d5ae7d3 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 22 Apr 2019 19:58:52 -0500 Subject: [PATCH 2/5] Add Arch tests --- .travis-arch-build/Dockerfile | 10 ++++ .travis-arch-build/preferences.txt | 77 ++++++++++++++++++++++++++++++ .travis-arch-build/run.sh | 5 ++ .travis.yml | 9 ++++ 4 files changed, 101 insertions(+) create mode 100644 .travis-arch-build/Dockerfile create mode 100644 .travis-arch-build/preferences.txt create mode 100755 .travis-arch-build/run.sh diff --git a/.travis-arch-build/Dockerfile b/.travis-arch-build/Dockerfile new file mode 100644 index 0000000..9dec63c --- /dev/null +++ b/.travis-arch-build/Dockerfile @@ -0,0 +1,10 @@ +FROM archlinux/base +RUN pacman --noconfirm -Sy +RUN pacman --noconfirm -S arduino arduino-avr-core git cmake make lsb-release +RUN mkdir -p /root/.arduino15 /root/Arduino/libraries +RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo +RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/libraries/Stepper +RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet +COPY preferences.txt /root/.arduino15/preferences.txt +COPY run.sh /run.sh +CMD /run.sh \ No newline at end of file diff --git a/.travis-arch-build/preferences.txt b/.travis-arch-build/preferences.txt new file mode 100644 index 0000000..72890f7 --- /dev/null +++ b/.travis-arch-build/preferences.txt @@ -0,0 +1,77 @@ +board=yun +browser=mozilla +build.warn_data_percentage=75 +console=true +console.auto_clear=true +console.error.file=stderr.txt +console.length=500 +console.lines=4 +console.output.file=stdout.txt +editor.antialias=true +editor.auto_close_braces=true +editor.caret.blink=true +editor.code_folding=false +editor.divider.size=0 +editor.external=false +editor.font=Monospaced,plain,12 +editor.indent=true +editor.invalid=false +editor.keys.alternative_cut_copy_paste=true +editor.keys.home_and_end_beginning_end_of_doc=false +editor.keys.shift_backspace_is_delete=true +editor.languages.current= +editor.linenumbers=false +editor.save_on_verify=true +editor.tabs.expand=true +editor.tabs.size=2 +editor.window.height.default=600 +editor.window.height.min=290 +editor.window.width.default=500 +editor.window.width.min=400 +export.applet.separate_jar_files=false +export.application.fullscreen=false +export.application.platform=true +export.application.stop=true +export.delete_target_folder=true +gui.scale=auto +last.ide.1.8.9.daterun=1555970130 +last.ide.1.8.9.hardwarepath=/usr/share/arduino/hardware +last.screen.height=1028 +last.screen.width=1680 +last.sketch.count=0 +last.sketch.default.location=590,214,500,592,397,0 +last.sketch.default.path=/tmp/untitled309991618.tmp/sketch_apr22a/sketch_apr22a.ino +launcher=xdg-open +platform.auto_file_type_associations=true +preferences.readonly=false +preproc.color_datatype=true +preproc.enhanced_casting=true +preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.* +preproc.output_parse_tree=false +preproc.save_build_files=false +preproc.substitute_floats=true +preproc.substitute_unicode=true +preproc.web_colors=true +programmer=arduino:avrispmkii +run.display=1 +run.options= +run.options.memory=false +run.options.memory.initial=64 +run.options.memory.maximum=256 +run.present.bgcolor=#666666 +run.present.exclusive=false +run.present.stop.color=#cccccc +serial.databits=8 +serial.debug_rate=9600 +serial.line_ending=1 +serial.parity=N +serial.stopbits=1 +sketchbook.path=/root/Arduino +software=ARDUINO +target_package=archlinux-arduino +target_platform=avr +update.check=true +update.id=4828131701236159116 +update.last=1555970134196 +upload.using=bootloader +upload.verify=true diff --git a/.travis-arch-build/run.sh b/.travis-arch-build/run.sh new file mode 100755 index 0000000..3498102 --- /dev/null +++ b/.travis-arch-build/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh +mkdir build +cd build +cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ +make \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 76f1b69..e0b1c40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,15 @@ matrix: install: [] script: - docker run -v "$TRAVIS_BUILD_DIR/cmake":/cmake -v "$TRAVIS_BUILD_DIR/examples":/examples fedorabuild + - os: linux + service: docker + env: TEST_ARCH=TRUE + addons: {} + before_install: + - docker build -t archbuild .travis-arch-build + install: [] + script: + - docker run -v "$TRAVIS_BUILD_DIR/cmake":/cmake -v "$TRAVIS_BUILD_DIR/examples":/examples archbuild cache: directories: - $HOME/$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION From d24edb1f845ea9b48318b3129a3d31c07d2e4d04 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 22 Apr 2019 23:09:04 -0500 Subject: [PATCH 3/5] Download Stepper and Ethernet on Fedora build Arduino appears to have removed those libraries from the main arduino repository, so we can probably expect them to disappear from the Fedora package the next time it updates --- .travis-fedora-build/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis-fedora-build/Dockerfile b/.travis-fedora-build/Dockerfile index b80beca..d796fbe 100644 --- a/.travis-fedora-build/Dockerfile +++ b/.travis-fedora-build/Dockerfile @@ -2,6 +2,8 @@ FROM fedora:latest RUN dnf install -y arduino cmake make redhat-lsb-core git RUN mkdir -p /root/.arduino15 /root/Arduino/libraries RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo +RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/libraries/Stepper +RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet COPY preferences.txt /root/.arduino15/preferences.txt COPY run.sh /run.sh CMD /run.sh \ No newline at end of file From 7b5deb8f7dca3fb66cd5147695a237620ba91977 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 23 Apr 2019 02:46:32 -0500 Subject: [PATCH 4/5] Add trailing newlines --- .travis-arch-build/Dockerfile | 3 ++- .travis-arch-build/run.sh | 3 ++- .travis-fedora-build/Dockerfile | 3 ++- .travis-fedora-build/run.sh | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis-arch-build/Dockerfile b/.travis-arch-build/Dockerfile index 9dec63c..bdb636b 100644 --- a/.travis-arch-build/Dockerfile +++ b/.travis-arch-build/Dockerfile @@ -7,4 +7,5 @@ RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/lib RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet COPY preferences.txt /root/.arduino15/preferences.txt COPY run.sh /run.sh -CMD /run.sh \ No newline at end of file +CMD /run.sh + diff --git a/.travis-arch-build/run.sh b/.travis-arch-build/run.sh index 3498102..c12b01c 100755 --- a/.travis-arch-build/run.sh +++ b/.travis-arch-build/run.sh @@ -2,4 +2,5 @@ mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ -make \ No newline at end of file +make + diff --git a/.travis-fedora-build/Dockerfile b/.travis-fedora-build/Dockerfile index d796fbe..2b6606a 100644 --- a/.travis-fedora-build/Dockerfile +++ b/.travis-fedora-build/Dockerfile @@ -6,4 +6,5 @@ RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/lib RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet COPY preferences.txt /root/.arduino15/preferences.txt COPY run.sh /run.sh -CMD /run.sh \ No newline at end of file +CMD /run.sh + diff --git a/.travis-fedora-build/run.sh b/.travis-fedora-build/run.sh index 3498102..c12b01c 100755 --- a/.travis-fedora-build/run.sh +++ b/.travis-fedora-build/run.sh @@ -2,4 +2,5 @@ mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ -make \ No newline at end of file +make + From 753eca7ecfc9504d1d62ae5c3cb878554b4fbda7 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 23 Apr 2019 02:57:49 -0500 Subject: [PATCH 5/5] Directly specify sketchbook dir --- .travis-arch-build/Dockerfile | 3 +- .travis-arch-build/preferences.txt | 77 ---------------------------- .travis-arch-build/run.sh | 2 +- .travis-fedora-build/Dockerfile | 3 +- .travis-fedora-build/preferences.txt | 77 ---------------------------- .travis-fedora-build/run.sh | 2 +- 6 files changed, 4 insertions(+), 160 deletions(-) delete mode 100644 .travis-arch-build/preferences.txt delete mode 100644 .travis-fedora-build/preferences.txt diff --git a/.travis-arch-build/Dockerfile b/.travis-arch-build/Dockerfile index bdb636b..3baa782 100644 --- a/.travis-arch-build/Dockerfile +++ b/.travis-arch-build/Dockerfile @@ -1,11 +1,10 @@ FROM archlinux/base RUN pacman --noconfirm -Sy RUN pacman --noconfirm -S arduino arduino-avr-core git cmake make lsb-release -RUN mkdir -p /root/.arduino15 /root/Arduino/libraries +RUN mkdir -p /root/Arduino/libraries RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/libraries/Stepper RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet -COPY preferences.txt /root/.arduino15/preferences.txt COPY run.sh /run.sh CMD /run.sh diff --git a/.travis-arch-build/preferences.txt b/.travis-arch-build/preferences.txt deleted file mode 100644 index 72890f7..0000000 --- a/.travis-arch-build/preferences.txt +++ /dev/null @@ -1,77 +0,0 @@ -board=yun -browser=mozilla -build.warn_data_percentage=75 -console=true -console.auto_clear=true -console.error.file=stderr.txt -console.length=500 -console.lines=4 -console.output.file=stdout.txt -editor.antialias=true -editor.auto_close_braces=true -editor.caret.blink=true -editor.code_folding=false -editor.divider.size=0 -editor.external=false -editor.font=Monospaced,plain,12 -editor.indent=true -editor.invalid=false -editor.keys.alternative_cut_copy_paste=true -editor.keys.home_and_end_beginning_end_of_doc=false -editor.keys.shift_backspace_is_delete=true -editor.languages.current= -editor.linenumbers=false -editor.save_on_verify=true -editor.tabs.expand=true -editor.tabs.size=2 -editor.window.height.default=600 -editor.window.height.min=290 -editor.window.width.default=500 -editor.window.width.min=400 -export.applet.separate_jar_files=false -export.application.fullscreen=false -export.application.platform=true -export.application.stop=true -export.delete_target_folder=true -gui.scale=auto -last.ide.1.8.9.daterun=1555970130 -last.ide.1.8.9.hardwarepath=/usr/share/arduino/hardware -last.screen.height=1028 -last.screen.width=1680 -last.sketch.count=0 -last.sketch.default.location=590,214,500,592,397,0 -last.sketch.default.path=/tmp/untitled309991618.tmp/sketch_apr22a/sketch_apr22a.ino -launcher=xdg-open -platform.auto_file_type_associations=true -preferences.readonly=false -preproc.color_datatype=true -preproc.enhanced_casting=true -preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.* -preproc.output_parse_tree=false -preproc.save_build_files=false -preproc.substitute_floats=true -preproc.substitute_unicode=true -preproc.web_colors=true -programmer=arduino:avrispmkii -run.display=1 -run.options= -run.options.memory=false -run.options.memory.initial=64 -run.options.memory.maximum=256 -run.present.bgcolor=#666666 -run.present.exclusive=false -run.present.stop.color=#cccccc -serial.databits=8 -serial.debug_rate=9600 -serial.line_ending=1 -serial.parity=N -serial.stopbits=1 -sketchbook.path=/root/Arduino -software=ARDUINO -target_package=archlinux-arduino -target_platform=avr -update.check=true -update.id=4828131701236159116 -update.last=1555970134196 -upload.using=bootloader -upload.verify=true diff --git a/.travis-arch-build/run.sh b/.travis-arch-build/run.sh index c12b01c..b8f3d32 100755 --- a/.travis-arch-build/run.sh +++ b/.travis-arch-build/run.sh @@ -1,6 +1,6 @@ #!/bin/sh mkdir build cd build -cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ +cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DARDUINO_CMAKE_SKETCHBOOK_PATH=/root/Arduino ../examples/ make diff --git a/.travis-fedora-build/Dockerfile b/.travis-fedora-build/Dockerfile index 2b6606a..3c1ac14 100644 --- a/.travis-fedora-build/Dockerfile +++ b/.travis-fedora-build/Dockerfile @@ -1,10 +1,9 @@ FROM fedora:latest RUN dnf install -y arduino cmake make redhat-lsb-core git -RUN mkdir -p /root/.arduino15 /root/Arduino/libraries +RUN mkdir -p /root/Arduino/libraries RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo RUN git clone https://github.com/arduino-libraries/Stepper.git /root/Arduino/libraries/Stepper RUN git clone https://github.com/arduino-libraries/Ethernet.git /root/Arduino/libraries/Ethernet -COPY preferences.txt /root/.arduino15/preferences.txt COPY run.sh /run.sh CMD /run.sh diff --git a/.travis-fedora-build/preferences.txt b/.travis-fedora-build/preferences.txt deleted file mode 100644 index 72890f7..0000000 --- a/.travis-fedora-build/preferences.txt +++ /dev/null @@ -1,77 +0,0 @@ -board=yun -browser=mozilla -build.warn_data_percentage=75 -console=true -console.auto_clear=true -console.error.file=stderr.txt -console.length=500 -console.lines=4 -console.output.file=stdout.txt -editor.antialias=true -editor.auto_close_braces=true -editor.caret.blink=true -editor.code_folding=false -editor.divider.size=0 -editor.external=false -editor.font=Monospaced,plain,12 -editor.indent=true -editor.invalid=false -editor.keys.alternative_cut_copy_paste=true -editor.keys.home_and_end_beginning_end_of_doc=false -editor.keys.shift_backspace_is_delete=true -editor.languages.current= -editor.linenumbers=false -editor.save_on_verify=true -editor.tabs.expand=true -editor.tabs.size=2 -editor.window.height.default=600 -editor.window.height.min=290 -editor.window.width.default=500 -editor.window.width.min=400 -export.applet.separate_jar_files=false -export.application.fullscreen=false -export.application.platform=true -export.application.stop=true -export.delete_target_folder=true -gui.scale=auto -last.ide.1.8.9.daterun=1555970130 -last.ide.1.8.9.hardwarepath=/usr/share/arduino/hardware -last.screen.height=1028 -last.screen.width=1680 -last.sketch.count=0 -last.sketch.default.location=590,214,500,592,397,0 -last.sketch.default.path=/tmp/untitled309991618.tmp/sketch_apr22a/sketch_apr22a.ino -launcher=xdg-open -platform.auto_file_type_associations=true -preferences.readonly=false -preproc.color_datatype=true -preproc.enhanced_casting=true -preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.* -preproc.output_parse_tree=false -preproc.save_build_files=false -preproc.substitute_floats=true -preproc.substitute_unicode=true -preproc.web_colors=true -programmer=arduino:avrispmkii -run.display=1 -run.options= -run.options.memory=false -run.options.memory.initial=64 -run.options.memory.maximum=256 -run.present.bgcolor=#666666 -run.present.exclusive=false -run.present.stop.color=#cccccc -serial.databits=8 -serial.debug_rate=9600 -serial.line_ending=1 -serial.parity=N -serial.stopbits=1 -sketchbook.path=/root/Arduino -software=ARDUINO -target_package=archlinux-arduino -target_platform=avr -update.check=true -update.id=4828131701236159116 -update.last=1555970134196 -upload.using=bootloader -upload.verify=true diff --git a/.travis-fedora-build/run.sh b/.travis-fedora-build/run.sh index c12b01c..b8f3d32 100755 --- a/.travis-fedora-build/run.sh +++ b/.travis-fedora-build/run.sh @@ -1,6 +1,6 @@ #!/bin/sh mkdir build cd build -cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/ +cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DARDUINO_CMAKE_SKETCHBOOK_PATH=/root/Arduino ../examples/ make