view .travis.yml @ 570:6f87d002b918

Fix more tests and remove left-over buggy cfg(unix) directive
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 08 Jul 2022 14:58:11 -0700
parents ddd1e4e8d531
children
line wrap: on
line source

os:
  - linux
  - osx
    # Windows is troublesome and useless
    #  - windows
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