Windows CI For Your Packages
July 28, 2014 kevinsawicki
Now that the Windows Alpha is out, it is a great time to start building and testing your Atom packages on Windows.
Good news! The atom/ci repository now contains instructions and a template for building and testing Atom packages on AppVeyor. AppVeyor offers free Windows CI for open source repositories and ships with chocolatey for easy Atom installation.
All you need to do is add the following appveyor.yml
file to the root of your repository and configure your project on AppVeyor.
version: "{build}"
os: Windows Server 2012 R2
test: off
deploy: off
init:
- cmd: rd /s /q %CHOCOLATEYINSTALL%
- ps: iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
install:
- cinst atom
- cd %APPVEYOR_BUILD_FOLDER%
- apm install
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- apm test
This will run your package’s Jasmine specs against the latest
Atom release using the apm test
command.
You can see it in action for the wrap-guide package here.
Thanks to @joefitzgerald for adding this template and testing it out on his great go-plus package.
Happy Windows testing!