-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 2.81 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
language: rust
# sudo: false
sudo: required # workaround https://github.com/travis-ci/travis-ci/issues/9061
matrix:
include:
#- rust: stable
#- rust: beta
- rust: nightly
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=xmz_server/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
before_script: |
cp xmz-server.toml.example xmz-server.toml
script:
- cargo test
env:
global:
- RUSTFLAGS="-C link-dead-code"
- secure: WbBTORJ41B8303Ue/evU6TVQYDRoyAz8cgUIyTMgksUKwRpdJKFf4I3UbTBdHG1sIcNKQTjPDgMzgyVc3F2ys8jm2QtHioMBFHaJQ5UDH6ugu7hQjwlGcep/ijTq4IwwSg/+uUo1wk/sLeNaThNn2cCwBfMx1aWsA6B0wUUB7hQoaaLSRWO+JhbGnO8ycQ8+/iI7reusGHZH4K6KDsEqs0aABcJ6hottRqgYT7TdTdWxIZvR6v4Rgm7Eyk/t8AG3oMHe04MoP3wUaS9vOVoE4qrVu+MCgJQk6goD63OrXIxSXjz0JloR5Gy3PY/U2JuIU4s6+3shrcCykjrA/NenVnO5yxJ0Dd/jCbhZTfYYiegNLu20jLb574fjkNub21FuDAV9eqjgjSelNcaZbAk5pDVuqxku2qoSi4l4EKJwO/P6RVJayBudT3dHgE9S7qCL29OQVrH52aYq3A8qWcyPMMzQgLaz4pWAJGP9egIKlGU4yPnin0siWp5XXHd8Xnz/foCu02bnBuwPB0RRl51zfg4ErVXwQsdx4d4SHtfWZy5p0vZCOaC9q8/rOg1XFsoT/PTgqcNP4BAmkzoB2tDGzqhVESOfQPwrsz6dLdfEbffuSbSFMjLyZFFolMYea9VBorsI8Ji538BIScgnqqT6+W0bNuidCWK3gV2rxu3J7vY=
- secure: SB34Ph+7KN3SW6PB64nqfjontqWpEHoqOkV5ME+x41GQjIsgfGCJoyv8hEoA/6w2DPZRP7RMNkVIgUCc4j9uJGT12RIl44wiKdTFvTP4ffui8ztX3v90P79eIb/Pw2SV9tu6Gw6FQZau0w/U4B+ACOk/3TbyfyWm6DfDIwhIfgUhKUddJbMs7iRBXK2XqMD20ke49zqNr4mrx//q8Y4fLaGOxB0paO2q5BMskBNRKkumNk+5yXD/Pitm03iXjTfnfVWMWn5j/oo+kwykORIHGL2PERqh1BaTXqmUFgi1JMW5oHPUjoPnIYQauEtCtcYYRFrcAOmv7mcgMT+r9sliIXnlBbboxyOVNCzXO+JnXaafdFjOra/t2IhqDH5Nhxxn74bSVS+G5/NoRrn3clYN/x6wRCTeIvRGkI5YOcTbPuqrMbkE+xGGw2fQDVVbwq+BSjQaNvtPisCubQxZdRnnvuuizuCLqmcQrdAqtTf1XsYbV8rsxuZUXzUWdNd9TXkcIfJ9MYtCxMB0nmAMiJj36ww/hCp++gl3v9X1Bgp6Oz597ThvW94hzXGGpXNStuzjMNF1iijf83SOk1HqQ5RZ7AO7AffLPezwRcvez9IoYIOlwM8tfe/2aGCnbpS5unmsKmBDglnXylGkSTgKODLw7t/ueAvkAb3eI9ADtHLQ+ps=
notifications:
email:
on_success: never
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
make install DESTDIR=../../kcov-build &&
cd ../.. &&
rm -rf kcov-master &&
for file in target/debug/xmz-server-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"