-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
52 lines (52 loc) · 2.21 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
sudo: true
language: rust
os:
- linux
- osx
rust:
- nightly
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
before_install:
- openssl aes-256-cbc -K $encrypted_b63566236b41_key -iv $encrypted_b63566236b41_iv
-in auth_token.enc -out tests/auth_token -d
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install openssl
brew link --force openssl
export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
export DEP_OPENSSL_INCLUDE=`brew --prefix openssl`/include
fi
script:
- cargo build && cargo test
after_success: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; 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 &&
for file in target/debug/github_rs-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
for file in target/debug/harness-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"
fi
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- secure: eKQz20maPDDAiUR1gMdqrGrcQZAI00XdNuMQkcaOnzViaCW3f46+nCUijqpQGHyjfPT6/7zE+yr4haORHDYjYPxQPq8E+IPyaDI8vJ1CQS7c1tdRvWbYjvnuNXcGW2YrFzquLWD/d7wrYOp5zfklC+Y35rZllQeuqf0cN5+IGDV9tH+bd1OGZnHnw7FDZApBy5Ftx28qrrDmak3abl9sU4rYKR8SKlf0eYfq+x9D7v1ImgdvsbEUr2uVFlukrSme5xe4F+RGSwzl4o5BheRa8EM8M9ww8UluMYWrj2Nj+el5rlnMC48pjPjx6fDdFAjBO0KTAaaA163KVu2/K2l8+HqKDvoHsvRssCTr1OKXeFvQ14j4duY7tkOafro8UYByezDpPPlbr7ifdtPYJDPXsQ+bfq632+7hT0KifQq1VPtfTFlhVm/d/FeZtKQhzZy8r+6T/lpd4S1Nd1LbATpsNsxDNbwmnzeHW+bkwv2xh9nY+J/5YREu0XVM6ZnbSEM55zGzTJmY3X6d8OE4oJb+nkpXjTBesdHEDCxSRXU3XDmG1Vna7rCyvByHMAbb8gPJcgV2zcMhqJqVDCZON+m1bcHLmvvl4B+YHA+zOVajV082R01+FwPPKJRD3Y4DI8NoNy+Iu5JaWj5adB1SoWErb+MEF+IdTtfF/FRlA2oUlh4=