Atom Package CI Scripts
Templates for building your Atom package using Travis CI.
Setting up CI for your package
- Sign up for an account on Travis CI
- Copy this .travis.yml to the root of your package's repository.
- Setup the Travis hook on your package's repository.
๐ฅ Your package will now build. You can see an example of a configured package here.
FAQ
Why is the language set to objective-c?
Atom has only been released for Mac OS X and setting the language
to
objective-c
tells Travis to run the build on a Mac OS X worker. You can
read more about it here.
What version of Atom is used to run the specs?
It will always download the latest available version. You can read more about the latest Atom release here.
How does it it work?
The .travis.yml
template downloads the build-package.sh
from this repository. This script then downloads node, the latest Atom release,
and runs the apm test
command to run your package's specs. You can run
apm help test
to learn more about that command.
The apm test
command assumes your package is using Jasmine
specs. You can run the specs locally using Atom's spec runner UI from the
View > Developer > Run Package Specs menu or by pressing cmd-ctrl-alt-p
.
What does the output look like?
Take a look at an example package build here.
What packages use this?
Click here to see all the Atom packages with Travis CI enabled.