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:
  - git clone https://github.com/kentonv/capnproto.git
  - cd capnproto/c++
  - ./setup-autotools.sh
  - autoreconf -i
  - ./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

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

Use release version of schema compiler.
Use release version of schema compiler.
