2017-07-30 18:59:23 +00:00
|
|
|
language: rust
|
|
|
|
dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
2017-07-30 19:12:28 +00:00
|
|
|
install:
|
|
|
|
- wget https://github.com/jedisct1/libsodium/releases/download/1.0.8/libsodium-1.0.8.tar.gz
|
|
|
|
- tar xvfz libsodium-1.0.8.tar.gz
|
|
|
|
- cd libsodium-1.0.8 && ./configure --prefix=$HOME/installed_libsodium && make && make install && cd ..
|
|
|
|
- export PKG_CONFIG_PATH=$HOME/installed_libsodium/lib/pkgconfig:$PKG_CONFIG_PATH
|
|
|
|
- export LD_LIBRARY_PATH=$HOME/installed_libsodium/lib:$LD_LIBRARY_PATH
|
2017-07-30 18:59:23 +00:00
|
|
|
cache: cargo
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
script:
|
|
|
|
- cargo clean
|
|
|
|
- cargo build
|
|
|
|
- cargo test
|
|
|
|
|
|
|
|
after_success: |
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
|
|
|
|
cargo install cargo-tarpaulin
|
|
|
|
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
|
|
|
|
fi
|