mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Run lint in Travis CI
This commit is contained in:
parent
d08e09fbdc
commit
7be492d129
1 changed files with 3 additions and 0 deletions
3
.travis.yml
vendored
3
.travis.yml
vendored
|
@ -13,9 +13,12 @@ before_cache:
|
||||||
before_script:
|
before_script:
|
||||||
- psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
- psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
||||||
- psql -c 'create database lemmy with owner lemmy;' -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:
|
before_install:
|
||||||
- cd server
|
- cd server
|
||||||
script:
|
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
|
- cargo build
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
Loading…
Reference in a new issue