view .travis.yml @ 523:a32463dc4cb2

Build examples in CI
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 23 Feb 2020 23:07:42 +0100
parents bbc3c3ec2080
children dd122e4ef0d8
line wrap: on
line source

os:
  - linux
  - osx
dist: bionic
sudo: false

language: rust
rust:
  - stable
  - nightly

stages:
  - name: test
  - name: lint

install: true

# Default script is the "test" stage
script: 
  - cargo build
  - cargo test
  - examples/build_examples.sh

jobs:
  include:
    - stage: lint
      if: os = linux
      rust: stable
      install:
        - rustup component add rustfmt
      script:
        - cargo fmt --all -- --check

cache: cargo