language: rust
rust:
- nightly
- beta
- stable
before_install:
- yes | sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- sudo apt-get update
install:
- sudo apt-get install g++-4.8 gcc-4.8 git
- git clone https://github.com/kentonv/capnproto.git
- export CC=gcc-4.8
- export CXX=g++-4.8
- cd capnproto/c++
- ./setup-autotools.sh
- autoreconf -i
- ./configure && make -j5 && sudo 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