language: rust
addons:
apt:
packages:
- binutils-dev
- build-essential
- cmake
- g++
- gcc
- libcurl4-openssl-dev
- libdw-dev
- libelf-dev
- libiberty-dev
- zlib1g-dev
rust:
- stable
dist: trusty
sudo: required
cache:
directories:
- $HOME/.cargo
- $HOME/.local
- $TRAVIS_BUILD_DIR/target
jobs:
include:
- name: linux
os: linux
script:
- cargo test
- name: linux precompile
os: linux
install:
- sudo add-apt-repository -y ppa:elt/libsodium
- sudo apt-get -qq update
- sudo apt-get -qq --yes install pkg-config libsodium-dev
script:
- cargo test
- name: macos
os: osx
script:
- cargo test
- name: windows
os: windows
script:
- cargo test --tests
- name: clippy
os: linux
install:
- sudo add-apt-repository -y ppa:elt/libsodium
- sudo apt-get -qq update
- sudo apt-get -qq --yes install pkg-config libsodium-dev
- rustup component add clippy-preview
script:
- cargo clippy --all -- -D warnings