Add travis build.

Also, allow the new lint proc_macro_derive_resolution_fallback, which
otherwise breaks diesel in current beta and nightly.
This commit is contained in:
Rasmus Kaj 2018-08-20 17:02:10 +02:00
parent 5a103f81b3
commit 5a241d78f5
4 changed files with 20 additions and 1 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: rust
rust:
- stable
- beta
cache: cargo
before_script:
- cargo update || true
matrix:
include:
- rust: nightly
env: TASK=rustfmt
before_script: rustup component add rustfmt-preview
script: cargo fmt -- --check

View File

@ -1,5 +1,5 @@
[package]
name = "warp-db-session"
name = "warp-diesel-ructe-sample"
version = "0.1.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

View File

@ -3,3 +3,5 @@
This application is intended as an example of handling a login
session, using the warp web framework, the ructe template engine and
the diesel database layer.
[![Build Status](https://travis-ci.org/kaj/warp-diesel-ructe-sample.svg?branch=master)](https://travis-ci.org/kaj/warp-diesel-ructe-sample)

View File

@ -1,5 +1,9 @@
//! An example web service using ructe with the warp framework.
#![deny(warnings)]
// The new lint proc_macro_derive_resolution_fallback breaks diesel.
// Current stable rustc (1.28.0) does not have the lint, so ignore unknowns.
#![allow(unknown_lints)]
#![allow(proc_macro_derive_resolution_fallback)]
extern crate bcrypt;
#[macro_use]
extern crate diesel;