January 2019
Intermediate to advanced
520 pages
14h 32m
English
TravisCI is the most popular CI service for open source projects, because it provides a free plan for such projects and is integrated well with GitHub. To use it, all you have to do is add the .travis.yml file to the root of repository of your project. It supports Rust out of the box.
With TravisCI, you can build your projects in either Linux or macOS environments. Let's write a simple example of a .travis.yml file. The first part of this file is a building matrix declaration:
language: rustcache: cargomatrix: include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu - os: linux rust: nightly env: TARGET=x86_64-unknown-linux-gnu - os: osx rust: stable env: TARGET=x86_64-apple-darwin - os: osx rust: nightly env: TARGET=x86_64-apple-darwin ...
Read now
Unlock full access