forked from erickt/rust-zmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (75 loc) · 2.09 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: rust
sudo: false
rust:
- stable
- beta
- nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- make
- automake
- gcc
- build-essential
- g++
- cpp
- libc6-dev
- man-db
- autoconf
- pkg-config
- libtool
- git
before_script:
- |
set -e
pip install 'travis-cargo<0.2' --user
git clone --depth 1 -b stable https://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
./configure --prefix=$HOME
make
make install
cd ..
wget https://github.com/zeromq/zeromq4-1/archive/v4.1.6.tar.gz
tar zxf v4.1.6.tar.gz
cd zeromq4-1-4.1.6
./autogen.sh
./configure --prefix=$HOME --with-libsodium
make
make install
cd ..
script:
- travis-cargo --skip nightly build
- travis-cargo --only nightly build -- --features unstable
- travis-cargo --skip nightly test
- travis-cargo --only nightly clean # needed due to compiltest-rs issue
- travis-cargo --only nightly test -- --features unstable-testing
- travis-cargo --skip nightly bench
- travis-cargo --only nightly bench -- --features unstable-testing
- travis-cargo build -- --example helloworld_client
- travis-cargo build -- --example helloworld_server
- travis-cargo build -- --example msgsend
- travis-cargo build -- --example msreader
- travis-cargo build -- --example tasksink
- travis-cargo build -- --example taskvent
- travis-cargo build -- --example taskwork
- travis-cargo build -- --example version
- travis-cargo build -- --example weather_client
- travis-cargo build -- --example weather_server
- travis-cargo --only stable doc
after_success:
- |
if [ "$TRAVIS_BRANCH" = master ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
travis-cargo --only stable doc-upload
# travis-cargo coverage --no-sudo
fi
env:
global:
- PATH=$HOME/.local/bin:$PATH
- LD_LIBRARY_PATH=$HOME/lib
- PKG_CONFIG_PATH=$HOME/lib/pkgconfig
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- secure: HsoFtb8raiT2SJewpTEOFeMgXZUOwbcBEcjVPlsyrBI8WZ9dGp3aK1k6MsfiF4AV6PVE3XaaEQS/9iks5l4YswHP0WGz2L2hV2CORMem25x3q85PWZzZFm4RdO6E13LDRHjRZ56u80rYs0koL7loY2AZxc1iibwyKfUwba1LYu8=