mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
commit
d1bdbaae06
3 changed files with 43 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
language: rust
|
||||
|
||||
rust: nightly
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
|
@ -22,6 +28,7 @@ install:
|
|||
- (cargo install rustfmt || true)
|
||||
|
||||
script:
|
||||
- PATH=$PATH:./node_modules/.bin
|
||||
- remark -f README.md > /dev/null
|
||||
- python util/update_lints.py -c
|
||||
- set -e
|
||||
|
@ -33,6 +40,7 @@ script:
|
|||
- cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy
|
||||
- PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy
|
||||
- cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd ..
|
||||
- set +e
|
||||
|
||||
after_success:
|
||||
- ./.github/deploy.sh
|
||||
|
@ -56,3 +64,4 @@ after_success:
|
|||
else
|
||||
echo "Ignored"
|
||||
fi
|
||||
set +e
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# rust-clippy
|
||||
|
||||
[![Build Status](https://travis-ci.org/Manishearth/rust-clippy.svg?branch=master)](https://travis-ci.org/Manishearth/rust-clippy)
|
||||
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/Manishearth/rust-clippy?svg=true)](https://ci.appveyor.com/project/Manishearth/rust-clippy)
|
||||
[![Clippy Linting Result](http://clippy.bashy.io/github/Manishearth/rust-clippy/master/badge.svg)](http://clippy.bashy.io/github/Manishearth/rust-clippy/master/log)
|
||||
[![Current Version](http://meritbadge.herokuapp.com/clippy)](https://crates.io/crates/clippy)
|
||||
[![License: MPL-2.0](https://img.shields.io/crates/l/clippy.svg)](#License)
|
||||
|
|
33
appveyor.yml
Normal file
33
appveyor.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
environment:
|
||||
global:
|
||||
PROJECT_NAME: rust-clippy
|
||||
matrix:
|
||||
- TARGET: i686-pc-windows-gnu
|
||||
MSYS2_BITS: 32
|
||||
- TARGET: i686-pc-windows-msvc
|
||||
MSYS2_BITS: 32
|
||||
- TARGET: x86_64-pc-windows-gnu
|
||||
MSYS2_BITS: 64
|
||||
- TARGET: x86_64-pc-windows-msvc
|
||||
MSYS2_BITS: 64
|
||||
|
||||
install:
|
||||
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
|
||||
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
|
||||
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
|
||||
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
|
||||
- rustc -V
|
||||
- cargo -V
|
||||
|
||||
build: false
|
||||
|
||||
test_script:
|
||||
- cargo build --features debugging
|
||||
- cargo test --features debugging
|
||||
- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
|
||||
- cargo clippy -- -D clippy
|
||||
- cd clippy_lints && cargo clippy -- -D clippy && cd ..
|
||||
|
||||
notifications:
|
||||
- provider: Email
|
||||
on_build_success: false
|
Loading…
Reference in a new issue