From 7a858089bff75e5229d4071548607aab5bdbf810 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Thu, 3 Oct 2019 22:59:54 -0700 Subject: [PATCH] First pass at CI support (#1) * First pass at CI support * Fix MSRV (required by wgpu) * Winit requires MSRV 1.36.0 on Linux, add rustfmt to CI, add CI badge to README * Don't forget to install rustfmt --- .travis.yml | 22 ++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a163315 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: rust +rust: +# MSRV +- 1.36.0 + +# All of the latest release channels +- stable +- beta +- nightly + +cache: cargo + +matrix: + fast_finish: true + +before_script: +- rustup component add rustfmt + +script: +- cargo build +- cargo test +- cargo fmt --all -- --check diff --git a/README.md b/README.md index 13650f7..23a1b14 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/parasyte/pixels.svg?branch=master)](https://travis-ci.org/parasyte/pixels) + ![Pixels Logo](img/pixels.png) A tiny hardware-accelerated pixel frame buffer. :crab: