view .travis.yml @ 532:dd122e4ef0d8

add windows to ci build
author João Oliveira <hello@jxs.pt>
date Wed, 27 May 2020 12:01:44 +0100
parents a32463dc4cb2
children ddd1e4e8d531
line wrap: on
line source

os:
  - linux
  - osx
  - 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