forked from bluss/matrixmultiply
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (66 loc) · 1.55 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
66
67
68
69
70
os: linux
language: rust
sudo: yes
dist: trusty
matrix:
include:
- rust: 1.28.0
env:
TARGET=x86_64-unknown-linux-gnu
- rust: stable
env:
TARGET=x86_64-unknown-linux-gnu
- rust: stable
env:
TARGET=i686-unknown-linux-gnu
- rust: beta
env:
TARGET=x86_64-unknown-linux-gnu
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
MMTEST_FEATURE=fma
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
MMTEST_FEATURE=sse2
MMTEST_ENSUREFEATURE=1
- rust: nightly
env:
TARGET=x86_64-unknown-linux-gnu
MMTEST_FEATURE=avx
MMTEST_ENSUREFEATURE=1
- rust: nightly
env:
TARGET=aarch64-unknown-linux-gnu
BUILD_ONLY=1
env:
global:
- HOST=x86_64-unknown-linux-gnu
addons:
apt:
packages:
# needed for i686-unknown-linux-gnu target
- gcc-multilib
install:
# "rustup error: cannot re-add" without this conditional check
- if [[ $HOST != $TARGET ]]; then rustup target add $TARGET; fi
# the main build
script:
- |
set -e &&
set -v &&
rustc --print cfg -Ctarget-cpu=native &&
cargo build -v --target=$TARGET && (
if [ -n "$BUILD_ONLY" ]; then
cargo check --tests -v --target=$TARGET &&
cargo doc -v --target=$TARGET
else
cargo test -v --target=$TARGET &&
cargo test -v --release --target=$TARGET &&
cargo doc -v --target=$TARGET &&
cargo bench -v --target=$TARGET
fi)
branches:
only:
- master