env:
global:
- secure: 6GJFbN62dQxgdMDUCy92Wc3xHaepp3D5/AwOfKM2tfik454AeZgoymGfXD/Om9WZXcwe1ji3szzCRNqwNKTeMgxBvjof4CdoybspEzjgHo5+XpkS7nHtlD3af9HL7NDKrep194B90YIkpoy/tML9wrlVSBMhrOX8dzNNnSSijmA=
- Features=use-mock-crust
- RUST_BACKTRACE=1
os:
- linux
- osx
language: rust
rust:
- stable
- nightly
matrix:
allow_failures:
- rust: nightly
sudo: false
branches:
only:
- master
cache:
cargo: true
directories:
- $HOME/libsodium
- $HOME/elfutils
install:
- curl -sSLO https://github.com/maidsafe/QA/raw/master/Bash%20Scripts/Travis/install_libsodium.sh
- . install_libsodium.sh
script:
- curl -sSL https://github.com/maidsafe/QA/raw/master/Bash%20Scripts/Travis/build_and_run_tests.sh | bash
- cd $TRAVIS_BUILD_DIR && cargo build --example ci_test
- cd $TRAVIS_BUILD_DIR && cargo build --example key_value_store
before_cache:
- curl -sSLO https://github.com/maidsafe/QA/raw/master/Bash%20Scripts/Travis/install_elfutils.sh
- . install_elfutils.sh
after_success:
- curl -sSL https://github.com/maidsafe/QA/raw/master/Bash%20Scripts/Travis/after_success.sh | bash