Comments (7)
Installing Arduino on Appveyor: https://thinkognito.wordpress.com/2016/09/22/continuous-integration-fuer-arduino-mit-appveyor/
version: 1.0.{build}
install:
- ps: >-
(New-Object Net.WebClient).DownloadFile('http://downloads.arduino.cc/arduino-1.6.11-windows.zip', 'C:\projects\arduino.zip')
Expand-Archive C:\projects\arduino.zip -dest C:\projects\arduino\
(New-Object Net.WebClient).DownloadFile('http://downloads.arduino.cc/libraries/NicoHood/HID_Project-2.4.3.zip', 'C:\projects\hidproject.zip')
Expand-Archive C:\projects\hidproject.zip -dest C:\projects\hidproject\
Copy-Item 'C:\projects\hidproject\HID_Project-2.4.3' 'C:\projects\arduino\arduino-1.6.11\libraries\HID-Project' -recurse
build_script:
- cmd: >-
cd C:\projects\arduino\arduino-1.6.11
arduino_debug.exe --verify --board arduino:avr:leonardo --verbose-build C:\projects\REPOSITORYNAME\PATHTOSKETCH\keyboard_layouts.ino
from arduino_ci.
Counterpoint, use cygwin https://github.com/james-d-mitchell/libsemigroups/blob/master/appveyor.yml
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
environment:
matrix:
- CYG_ARCH: x86
CYG_ROOT: C:/cygwin
- CYG_ARCH: x86_64
CYG_ROOT: C:/cygwin64
install:
- '%CYG_ROOT%\setup-%CYG_ARCH%.exe -qnNdO -R %CYG_ROOT% -s http://cygwin.mirror.constant.com -l %CYG_ROOT%/var/cache/setup -P autoconf -P automake -P bison -P libgmp-devel -P gcc-core -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++ -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl'
build: off
test_script:
- '%CYG_ROOT%/bin/bash -lc "g++ --version && cd $APPVEYOR_BUILD_FOLDER && ./autogen.sh && ./configure && make check"'
from arduino_ci.
Also, https://www.appveyor.com/docs/lang/ruby/
install:
- set PATH=C:\Ruby22\bin;%PATH%
- bundle install
build: off
before_test:
- ruby -v
- gem -v
- bundle -v
test_script:
- bundle exec rake
from arduino_ci.
If you run the following in a windows shell :
REG QUERY "HKLM\SOFTWARE\Classes\Arduino file\shell\open\command"
You will get the response (assuming it has been installed to C:\Program Files (x86)\Arduino):
(Default) REG_SZ "C:\Program Files (x86)\Arduino\arduino.exe" "%1"
And if it doesn't exists you should see:
ERROR: The system was unable to find the specified registry key or value.
from arduino_ci.
There will only be a registry entry if the Arduino IDE installer was used (or someone manually associated the .ino extension).
from arduino_ci.
That's OK, default behavior is to force_install
the Arduino binary if the registry key can't be found. That will be the case on any given CI machine.
I would welcome any suggestions you have for fixing https://github.com/ianfixes/arduino_ci/pull/39 since I don't have a windows machine to test on
from arduino_ci.
I ran this on my windows box and found that the following would provide you with the install location:
# The executable Arduino file in an existing installation, or nil
# @return [string]
def self.existing_executable
arduino_reg = 'SOFTWARE\WOW6432Node\Arduino'
Win32::Registry::HKEY_LOCAL_MACHINE.open(arduino_reg) do |reg|
location = reg.read_s('Install_Dir')
puts 'Arduino Install Dir: ' + location
return location
end
nil
end
It then runs to here:
The set of compilers (0) isn't empty... ✗
This may indicate a problem with ArduinoCI!
Failures: 1
Which is an issue with the .arduino_ci.yaml file in the DoSomething example not specifying compilers.
Correcting that gets as far as trying to execute g++ which I don't think I have as my machine lunched itself and I am yet to put it back on - I'll see if I can find sometime to get it and add it to my path and let you know what happens, although I am not 100% sure that what I return in the self.existing_executable function is what you are after.
from arduino_ci.
Related Issues (20)
- Output errors to stderr HOT 11
- Empty examples folder causes build to fail HOT 2
- arduino_ci.rb fails to report compile error
- The build-CI does not support setWireTimeout(). HOT 1
- Can RP2040 build environment be supported? HOT 10
- compiling unit tests uses arduino platform specific code HOT 6
- running in gitlab CI HOT 3
- Platform.io Support HOT 3
- Improve factorization of "unused space"
- Running "bundle install --path vendor/bundle" generates deprecated warning HOT 1
- Use temporary directories for unit test artifacts
- ESP32 failing to install in CI build HOT 2
- Update documentation to recommend version pinning
- ESP32 flags unused function as error (should be warning) HOT 9
- libraries: "SoftwareSerial" does not work. HOT 11
- "Bad file descriptor" error when installing HOT 2
- Implement Wire.h slave device mock support
- 1.6.0 error: undefined method `library_of_name' for nil:NilClass (NoMethodError) HOT 5
- Show differences lined up and in quotes
- Unable to find library location on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_ci.