-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (61 loc) · 1.51 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
language: rust
cache: cargo
dist: trusty
os: linux
# sudo and addon only for codecov
sudo: true
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
- zlib1g-dev
- libudev-dev
# Run builds for all the supported trains
rust:
#- nightly
#- beta
- stable
# Update distribution packages before anything else.
before_install:
- sudo apt-get update
before_script:
- cargo install diesel_cli --no-default-features --features sqlite --force
# The main build
script:
- make build
- make build-release
- make package
- sudo apt install ./build/octopod*
after_success:
# Coverage report
- |
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
sudo make install &&
cd ../.. &&
rm -rf kcov-master &&
pwd &&
ls -l /home/travis/build/yfery/octopod/target/release/ &&
mkdir -p "target/cov/octopod/"
kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/octopod/" "target/debug/octopod" &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"
fi
notifications:
email:
recipients:
- yann@fery.me
on_success: change
on_failure: always