]> Untitled Git - lemmy.git/commitdiff
Run lint in Travis CI
authorFelix Ableitner <me@nutomic.com>
Thu, 2 Jan 2020 11:47:11 +0000 (12:47 +0100)
committerFelix Ableitner <me@nutomic.com>
Thu, 2 Jan 2020 11:52:08 +0000 (12:52 +0100)
.travis.yml

index dfdcbf7e3884befe4334c97bb002e711f4b5892e..0f180dba5441f17defb3620cd779b507f6e98c81 100644 (file)
@@ -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