Building a Crystal Project

What This Guide Covers

This guide covers build environment and configuration topics specific to Crystal projects. Please make sure to read our Getting Started and general build configuration guides first.

Community-Supported Warning

Travis CI support for Crystal is contributed by the community and may be removed or altered at any time. If you run into any problems, please report them in the Travis CI issue tracker and cc @asterite, @jhass, @waj, and @will in the issue.

Basic configuration

If your Crystal project doesn’t need any dependencies beyond those specified in your shard.yml, your .travis.yml can simply be

language: crystal

This will run crystal deps to install dependencies and then crystal spec to test your project.

Configuration options

By default Travis CI will use the latest Crystal release. It is also possible to test projects against the nightly build of Crystal. To do so, set the crystal key in .travis.yml. For example, to test against both nightly and the latest release:

language: crystal
  - latest
  - nightly