diff options
author | Felix Ableitner <me@nutomic.com> | 2020-01-02 12:47:11 +0100 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2020-01-02 12:52:08 +0100 |
commit | 7be492d129c294833936fa94cb26406b9ae79a8f (patch) | |
tree | 1fcc2d2d40e7d9536de5b20cb6603fd888255d82 /.travis.yml | |
parent | d08e09fbdc9d0e50e4b81410ae513b034170c36b (diff) |
Run lint in Travis CI
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index dfdcbf7e..0f180dba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,12 @@ before_cache: before_script: - psql -c "create user lemmy with password 'password' superuser;" -U postgres - psql -c 'create database lemmy with owner lemmy;' -U postgres + - rustup component add clippy --toolchain stable-x86_64-unknown-linux-gnu before_install: - cd server script: + # Default checks, but fail if anything is detected + - cargo clippy -- -D clippy::style -D clippy::correctness -D clippy::complexity -D clippy::perf - cargo build - diesel migration run - cargo test |