capnpc 0.3.1

Cap'n Proto schema compiler plugin
sudo: false
language: rust
rust:
  - nightly
  - beta
  - stable
env:
  global:
    - CC=gcc-4.8
    - CXX=g++-4.8
    - export PATH="$PATH:$HOME/bin"
    - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/lib"
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.8
      - g++-4.8
install:
  - curl -O https://capnproto.org/capnproto-c++-0.5.3.tar.gz
  - tar zxf capnproto-c++-0.5.3.tar.gz
  - cd capnproto-c++-0.5.3
  - ./configure --prefix=$HOME
  - make -j3
  - make install
  - cd ../

script:
  - cargo build
  - cargo test
  - cargo doc
  - cd test
  - cargo test
  - cd ..
  - cd example/addressbook
  - cargo build
  - ./target/debug/addressbook write | ./target/debug/addressbook read
  - cd ../..
  - cd benchmark
  - cargo build --release
  - ./run_all.bash