forked from amethyst/amethyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (55 loc) · 1.57 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
64
65
# Set up the Rust toolchain.
language: rust
rust:
- stable
- beta
- nightly
# Allow for occasional compiler breakage on nightly Rust.
matrix:
allow_failures:
- rust: nightly
# Build the Bors staging and trying branches, plus PRs to develop, master, and
# the latest release branch.
branches:
only:
- staging
- trying
- develop
- master
- /release-.*/
# Test on Linux - OSX builds take in excess of 5 hours to start as of 2017-09-19.
os:
- linux
- osx
# Install ALSA development libraries before compiling on Linux.
addons:
apt:
packages:
- libasound2-dev
- libsdl2-dev
# Install SDL development libraries from homebrew on macOS
before_install:
- "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then brew update && brew install sdl2; fi"
# This build doesn't require sudo, but turning it on gives us more disk space
# We need the extra space as we keep running out.
sudo: required
# Force third-party crates to persist from previous builds and update only when
# needed.
cache:
- cargo
# Allow binaries installed from Cargo.
before_script:
- export PATH=$PATH:/home/travis/.cargo/bin
# Generate documentation, compile the engine, run tests.
script: |
# Build and test without profiler
cargo test --all -v &&
# Build and test with profiler
cargo test --all --features profiler -v &&
# Build and test with sdl_controller
cargo test --all --features sdl_controller -v
# Push notifications to `amethyst/general` and `amethyst/engine` Gitter chats.
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9735c01977c1df3de5cb