Skip to content

Commit

Permalink
use sudo to get a travis worker with avx2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 22, 2018
1 parent 3624366 commit 3d57134
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,27 @@ rust:
env:
-
- CARGO_CFG_HTTPARSE_DISABLE_SIMD=1
- CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+avx2"
- CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2"
- CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2,+avx2"
#- CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+avx2"
#- CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2,+avx2"
- RUSTFLAGS="-C target_feature=+sse4.2"
- RUSTFLAGS="-C target_feature=+avx2"
- RUSTFLAGS="-C target_feature=+sse4.2,+avx2"
#- RUSTFLAGS="-C target_feature=+avx2"
#- RUSTFLAGS="-C target_feature=+sse4.2,+avx2"

matrix:
fast_finish: true
#fast_finish: true
include:
- rust: 1.10.0 # minimum Rust version
script: # don't run tests, since dev-dependencies don't build on 1.10
- cargo build --no-default-features
- cargo build
- rust: nightly
sudo: true # supposedly with sudo, the worker has avx2 support?
env: RUSTFLAGS="-C target_feature=+avx2"

script:
- cargo build --no-default-features
- 'if [ "$TRAVIS_RUST_VERSION" != "1.10.0" ]; then cargo test --no-default-features; fi'
- cargo test --no-default-features
- cargo build
- 'if [ "$TRAVIS_RUST_VERSION" != "1.10.0" ]; then cargo test; fi'
- cargo test

0 comments on commit 3d57134

Please sign in to comment.