language: rust rust: - 1.29.0 cache: cargo: true timeout: 1200 addons: apt: packages: - unzip before_install: - if [ "$TRAVIS_SECURE_ENV_VARS" = true ]; then openssl aes-256-cbc -K $encrypted_ab99677a831c_key -iv $encrypted_ab99677a831c_iv -in deploy_rsa.enc -out deploy_rsa -d; fi - rustup component add --toolchain=$TRAVIS_RUST_VERSION rustfmt-preview clippy-preview - cargo deadlinks --version || cargo install cargo-deadlinks # after_failure: # # Outputs the syslog after a failed build, e.g. to debug `SIGILL` occurrences. # # Unfortunately this is likely to disable container-based travis images, # # causing a CI slowdown, so this option is commented out by default. It can # # be enabled per-branch to debug issues. # - sudo tail -n 250 /var/log/syslog env: global: - RUST_BACKTRACE=1 # Enables additional cpu-specific optimizations. - RUSTFLAGS="-D warnings -C target-cpu=native" - MLOCK_SECRETS=false script: - cargo clippy --tests --examples -- --deny clippy - cargo fmt -- --check - cargo test --all-features --release -- --test-threads 1 - cargo doc - cargo deadlinks --dir target/doc/hbbft/