forked from capnproto/capnp-rpc-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (41 loc) · 860 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
# On Debian, the 'capnproto' package currently does not include c++.capnp. Test here that we don't need it.
- ls -R $HOME/include
- rm -rf $HOME/include
- cd ../
script:
- cargo build
- cargo doc
- cd test
- cargo test
- cd ..
- cd examples/calculator
- ./test_client_and_server.bash
- cd ..
- cd pubsub
- cargo build