-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
83 lines (77 loc) · 2 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
78
79
80
81
82
83
sudo: true
dist: trusty
language: rust
addons:
apt:
sources:
- sourceline: 'ppa:pinepain/libv8-5.4'
- ubuntu-toolchain-r-test
packages:
# Modern compilers
- gcc-6
- g++-6
# The V8 version that we want to bind
- libv8-5.4-dev
- libicu-dev
# Dependencies for travis-cargo and for coverage
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
matrix:
include:
- env: FEATURES="" CC=gcc-6 CXX=g++-6
rust: stable
os: linux
- env: FEATURES="--features=shared" CC=gcc-6 CXX=g++-6
rust: stable
os: linux
- env: FEATURES="--features=shared"
rust: stable
os: osx
osx_image: xcode8
- env: FEATURES="" CC=gcc-6 CXX=g++-6
rust: nightly
os: linux
- env: FEATURES="--features=shared" CC=gcc-6 CXX=g++-6
rust: nightly
os: linux
allow_failures:
- rust: nightly
before_install:
- |
if [ "$TRAVIS_OS_NAME" = osx ]
then
brew tap dflemstr/tools
brew update
brew install -v dflemstr/tools/v8
fi
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$HOME/Library/Python/2.7/bin:$PATH
script:
- |
travis-cargo build -- $FEATURES &&
travis-cargo test -- $FEATURES &&
travis-cargo bench -- $FEATURES
after_success:
- |
if [ -z "$FEATURES" ]; then travis-cargo --only stable doc; travis-cargo --only stable doc-upload; fi
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 &&
RUSTFLAGS='-C link-dead-code' cargo test $FEATURES --no-run &&
for file in target/debug/v8-*
do
kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov" "$file"
done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"