language: rust
rust: nightly
addons:
  postgresql: 9.3

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:
  - cd server
  - cargo build --verbose
  - cargo test --verbose

after_success:
  - sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev
  - wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
  - tar xzf master.tar.gz
  - mkdir kcov-master/build
  - cd kcov-master/build
  - cmake ..
  - make
  - sudo make install
  - cd ../..
  - kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,/target target/kcov target/debug/lib-*

language: rust
rust: nightly
addons:
  postgresql: 9.3

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:
  - cd server
  - cargo build --verbose
  - cargo test --verbose

after_success:
  - sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev
  - wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
  - tar xzf master.tar.gz
  - mkdir kcov-master/build
  - cd kcov-master/build
  - cmake ..
  - make
  - sudo make install
  - cd ../..
  - kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,/target,/tests target/kcov target/debug/lib-*

Remove test code from coverage
Remove test code from coverage
