File: travis.sh

package info (click to toggle)
rust-argon2rs 0.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,020 kB
  • sloc: sh: 14; makefile: 2
file content (16 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cargo build
cargo test
# benches use `extern crate test` which requires nightly.
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]
then
    if [ ! -z "`grep '\<avx\>' /proc/cpuinfo`" ]
    then
        echo "=== benching with '-C target-feature=+avx' ==="
        export RUSTFLAGS='-C target-feature=+avx'
        cargo clean && cargo bench --features simd
    fi

    unset RUSTFLAGS
    echo "=== benching without avx ==="
    cargo clean && cargo bench --features simd
fi