Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add coverage recording #1229

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Add coverage recording

  • Loading branch information
jrmuizel committed Aug 31, 2017
commit 7b0163482b77c77f0f877f56ac492aeb47879df9
@@ -20,6 +20,13 @@ addons:
- libgl1-mesa-dev
- llvm-3.8-dev
- libedit-dev
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- libiberty-dev
- cmake
- gcc
- binutils-dev
env:
- BUILD_KIND=DEBUG RUST_BACKTRACE=1
- BUILD_KIND=RELEASE RUST_BACKTRACE=1
@@ -30,6 +37,15 @@ script:
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender_api && cargo test --verbose --features "ipc"); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd webrender && cargo build --verbose --no-default-features); fi
- if [ $BUILD_KIND = DEBUG ]; then (cargo test --all --verbose); fi
- if [ $BUILD_KIND = RELEASE ]; then (cd wrench && python headless.py reftest); fi
- if [ $BUILD_KIND = RELEASE ]; then (cargo test --all --verbose); fi
- if [ $BUILD_KIND = DEBUG ]; 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); fi
- if [ $BUILD_KIND = DEBUG ]; then (cd wrench && mkdir cov && python headless.py --subpixel-aa reftest); fi
- if [ $BUILD_KIND = RELEASE ]; then (cd wrench && cargo build --release --features=debugger); fi
- if [ $TRAVIS_RUST_VERSION == "nightly" ]; then (cd webrender && cargo bench --verbose); fi
@@ -67,4 +67,8 @@ def set_osmesa_env(bin_path):

subprocess.check_call(['cargo', 'build', '--release', '--verbose', '--features', 'headless'])
set_osmesa_env('../target/release/')
subprocess.check_call(['../target/release/wrench', '-h'] + sys.argv[1:])
subprocess.check_call(['kcov', '--verify', 'cov/out',
'--include-path', '../webrender',
'--coveralls-id', os.environ['TRAVIS_JOB_ID'],
'../target/release/wrench', '-h']
+ sys.argv[1:])
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.