language: rust
rust:
- stable
- beta
- nightly
- 1.25.0
os:
- linux
- osx
cache:
cargo: true
timeout: 900
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
matrix:
allow_failures:
- nightly
before_script:
- git clone git://github.com/jedisct1/libsodium.git
- cd libsodium
- ./autogen.sh
- ./configure && make
- sudo make install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ldconfig; fi
- cd ..
- export PATH="$PATH:$HOME/.cargo/bin"
script:
- cargo build --all-features
- cargo test --all-features