Travis

Build a Crystal Project

This guide covers build environment and configuration topics specific to Crystal projects. Please make sure to read our Onboarding 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, @will, and @bcardiff.

Configuration options #

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

dist: xenial
language: crystal
crystal:
  - latest
  - nightly
  - 0.35.1. # example of specific version

Note that the nightly build will only be available on Linux environments

You can also have a look at the Crystal section in our Travis CI Build Config Reference.