-
Notifications
You must be signed in to change notification settings - Fork 34
Add Windows & Appveyor CI support #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 |
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"' |
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 |
|
There will only be a registry entry if the Arduino IDE installer was used (or someone manually associated the .ino extension). |
That's OK, default behavior is to 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 |
I ran this on my windows box and found that the following would provide you with the install location:
It then runs to here:
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. |
Issue / Feature Request Summary
It's time to add Windows as a supported OS. There should be no technical limitation here beyond the difficulty of developing it without a Windows machine (relying instead on Appveyor directly).
At the moment, that failure due to lack of OS support (originally raised by @tomduff) is expressed in this form:
The text was updated successfully, but these errors were encountered: