forked from amethyst/amethyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (35 loc) · 1.14 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
# Set up the Rust toolchain.
language: rust
rust:
- stable
- beta
- nightly
# Allow for occasional compiler breakage on Nightly.
matrix:
allow_failures:
- rust: nightly
# Since this build doesn't require sudo, we can turn it off and improve build
# performance.
sudo: false
# Force third-party crates to persist from previous builds and update only when
# needed.
cache: cargo
# Install the necessary crates for building and testing the engine.
before_script:
- export PATH=$PATH:/home/travis/.cargo/bin
- (cargo install cargo-local-pkgs || true)
- (cargo install rustfmt || true)
# Format the codebase, generate documentation, compile the engine, run tests.
script: |
# cargo fmt -- --write-mode=diff &&
cargo local-pkgs doc --no-deps -v &&
cargo local-pkgs build -v &&
# Build and test without profiler
cargo test --all -v &&
# Build and test with profiler
cargo test --all -v --features profiler
# Push notifications to `amethyst/general` and `amethyst/engine` Gitter chats.
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9735c01977c1df3de5cb