-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (55 loc) · 1.82 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Specific clippy versions generally are only supported against specific
# nightly versions, so select a nightly/clippy combination known to work.
env:
global:
- CLIPPY_VERSION=0.0.113
- NIGHTLY_VERSION=nightly-2017-02-03
branches:
only:
- master
- develop
language: rust
rust:
- stable
- beta
- nightly
- nightly-2017-02-03
cache: cargo
matrix:
allow_failures:
- rust: nightly
before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cargo install clippy --vers $CLIPPY_VERSION --force;
cargo install rustfmt --force;
fi'
script:
- cargo build --manifest-path brain_fuck_joust/Cargo.toml --verbose
- cargo test --manifest-path brain_fuck_joust/Cargo.toml --verbose --all
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd brain_fuck_joust/ &&
cargo clippy -- --deny warnings;
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd bf_bot_core/ &&
cargo clippy -- --deny warnings;
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd bf_bot_compiler/ &&
cargo clippy -- --deny warnings;
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd brain_fuck_joust/ &&
export PATH=$PATH:~/.cargo/bin &&
cargo fmt -- --write-mode diff;
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd bf_bot_core/ &&
export PATH=$PATH:~/.cargo/bin &&
cargo fmt -- --write-mode diff;
fi'
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == $NIGHTLY_VERSION ]]; then
cd bf_bot_compiler/ &&
export PATH=$PATH:~/.cargo/bin &&
cargo fmt -- --write-mode diff;
fi'