]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Merge pull request #59 from rust-lang/blank-ish
[rust.git] / .travis.yml
1 language: rust
2 rust:
3   - nightly
4
5 matrix:
6   fast_finish: true
7   include:
8     # Linux (aarch64)
9     - name: "aarch64-unknown-linux-gnu (neon)"
10       os: linux
11       arch: arm64
12
13     - name: "aarch64-unknown-linux-gnu (neon, sve)"
14       os: linux
15       arch: arm64
16       env: RUSTFLAGS=-Ctarget-feature=+sve
17
18     - name: "aarch64-unknown-linux-gnu (native, see log for cfg)"
19       os: linux
20       arch: arm64
21       env: RUSTFLAGS=-Ctarget-cpu=native
22
23     # Linux (powerpc64le)
24     - name: "powerpc64le-unknown-linux-gnu (altivec, vsx, power8-*)"
25       os: linux
26       arch: ppc64le
27
28     - name: "powerpc64le-unknown-linux-gnu (native, see log for cfg)"
29       os: linux
30       arch: ppc64le
31       env: RUSTFLAGS=-Ctarget-cpu=native
32
33     # Linux (x86_64) (for AVX512, which sadly seems to only *usually* be present
34     # on the github actions linux runner...)
35     - name: "x86_64-unknown-linux-gnu+avx512vl"
36       os: linux
37       arch: amd64
38       env: RUSTFLAGS=-Ctarget-feature=+avx512vl
39
40     # WebAssembly (wasm-bindgen)
41     - name: "wasm32-unknown-unknown (node, firefox, chrome)"
42       os: linux
43       arch: amd64
44       addons:
45         firefox: latest
46         chrome: stable
47       install:
48         - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
49       script:
50         - wasm-pack test --node --firefox --chrome --headless crates/core_simd
51         - wasm-pack test --node --firefox --chrome --headless crates/core_simd --release
52
53     - name: "wasm32-unknown-unknown+simd128 (chrome)"
54       os: linux
55       arch: amd64
56       addons:
57         chrome: stable
58       install:
59         - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
60       script:
61         - export RUSTFLAGS="-C target-feature=+simd128"
62         - wasm-pack test --chrome --headless crates/core_simd
63         - wasm-pack test --chrome --headless crates/core_simd --release
64
65 script:
66   - echo "## Requested target configuration (RUSTFLAGS=$RUSTFLAGS)"
67   - rustc --print=cfg $RUSTFLAGS
68
69   - echo "## Supported target configuration"
70   - rustc --print=cfg -Ctarget-cpu=native
71
72   - echo "\n---\n"
73
74   - echo "## Running tests (debug)"
75   - cargo test -v
76
77   - echo "## Running tests (release)"
78   - cargo test -v --release