]> git.lizzy.rs Git - rust.git/blob - ci/base-tests.sh
travis: base-tests: share CARGO_TARGET_DIR between check runs of subcrates to avoid...
[rust.git] / ci / base-tests.sh
1 # Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 # file at the top-level directory of this distribution and at
3 # http://rust-lang.org/COPYRIGHT.
4 #
5 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 # option. This file may not be copied, modified, or distributed
9 # except according to those terms.
10
11
12 set -ex
13
14 echo "Running clippy base tests"
15
16 PATH=$PATH:./node_modules/.bin
17 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
18   remark -f *.md > /dev/null
19 fi
20 # build clippy in debug mode and run tests
21 cargo build --features debugging
22 cargo test --features debugging
23 # for faster build, share target dir between subcrates
24 export CARGO_TARGET_DIR=`pwd`/target/
25 cd clippy_lints && cargo test && cd ..
26 cd rustc_tools_util && cargo test && cd ..
27 cd clippy_dev && cargo test && cd ..
28
29 # Perform various checks for lint registration
30 ./util/dev update_lints --check
31 cargo +nightly fmt --all -- --check