forked from rust-ndarray/ndarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 815 Bytes
/
.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
language: rust
# use trusty for newer openblas
sudo: required
dist: trusty
matrix:
include:
- rust: stable
env:
- FEATURES='test'
- rust: beta
env:
- FEATURES='test'
- rust: nightly
env:
- FEATURES='test'
- BENCH=1
branches:
only:
- master
addons:
apt:
packages:
- libopenblas-dev
script:
- |
cargo build --verbose --features "$FEATURES" &&
cargo test --verbose --features "$FEATURES" &&
cargo test --release --verbose --features "" &&
CARGO_TARGET_DIR=target/ cargo test --manifest-path=serialization-tests/Cargo.toml --verbose &&
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose &&
([ "$BENCH" != 1 ] || cargo bench --no-run --verbose --features "$FEATURES")