view .travis.yml @ 69:b3aba9007285

Add Windows to Travis CI
author Thomas Krause <krauseto@hu-berlin.de>
date Mon, 17 Feb 2020 10:41:38 +0100
parents b059e13e867a
children f056393c3536
line wrap: on
line source

os:
  - linux
  - osx
  - windows
dist: bionic
sudo: false
addons:
  apt:
    packages:
      # necessary for kcov
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - libiberty-dev
      - binutils-dev
      - cmake
      - gcc

language: rust
rust:
  - stable
  - nightly

stages:
  - name: test
  - name: lint

install: true

# Default script is the "test" stage
script: 
  - cargo build
  - cargo test

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

cache: cargo