2018-05-04 02:19:36 -07:00
|
|
|
language: rust
|
2018-05-21 02:01:49 -07:00
|
|
|
rust:
|
2018-09-17 06:19:20 -07:00
|
|
|
- 1.29.0
|
2018-07-13 06:56:17 -07:00
|
|
|
cache:
|
|
|
|
cargo: true
|
|
|
|
timeout: 1200
|
2018-05-04 02:19:36 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- unzip
|
|
|
|
before_install:
|
2018-08-09 06:44:57 -07:00
|
|
|
- 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
|
2018-09-17 06:19:20 -07:00
|
|
|
- rustup component add --toolchain=$TRAVIS_RUST_VERSION rustfmt-preview clippy-preview
|
2018-09-27 01:44:07 -07:00
|
|
|
- cargo deadlinks --version || cargo install cargo-deadlinks
|
2018-08-10 05:32:33 -07:00
|
|
|
# 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
|
2018-05-04 02:19:36 -07:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- RUST_BACKTRACE=1
|
2018-08-29 06:56:35 -07:00
|
|
|
# Enables additional cpu-specific optimizations.
|
|
|
|
- RUSTFLAGS="-D warnings -C target-cpu=native"
|
2018-08-06 07:53:37 -07:00
|
|
|
- MLOCK_SECRETS=false
|
2018-05-08 07:20:32 -07:00
|
|
|
script:
|
2018-09-17 06:19:20 -07:00
|
|
|
- cargo clippy --tests --examples -- --deny clippy
|
|
|
|
- cargo fmt -- --check
|
2018-08-31 11:55:54 -07:00
|
|
|
- cargo test --all-features --release -- --test-threads 1
|
2018-09-26 03:09:56 -07:00
|
|
|
- cargo doc
|
|
|
|
- cargo deadlinks --dir target/doc/hbbft/
|