Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hammer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Letitia Li
hammer
Commits
10997afc
Commit
10997afc
authored
9 years ago
by
Meredith L. Patterson
Browse files
Options
Downloads
Patches
Plain Diff
adding code coverage to automation
parent
9dbd2deb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis.yml
+6
-2
6 additions, 2 deletions
.travis.yml
with
6 additions
and
2 deletions
.travis.yml
+
6
−
2
View file @
10997afc
...
@@ -92,6 +92,8 @@ matrix:
...
@@ -92,6 +92,8 @@ matrix:
env
:
BINDINGS=cpp CC=clang
env
:
BINDINGS=cpp CC=clang
before_install
:
before_install
:
-
sudo apt-get update -qq
-
sudo apt-get update -qq
-
sudo apt-get install lcov
-
gem install coveralls-lcov
-
if [ "$BINDINGS" != "none" ]; then sudo apt-get install -qq swig; fi
-
if [ "$BINDINGS" != "none" ]; then sudo apt-get install -qq swig; fi
-
if [ "$BINDINGS" == "perl" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi
-
if [ "$BINDINGS" == "perl" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi
-
if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
-
if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
...
@@ -100,11 +102,13 @@ install: true
...
@@ -100,11 +102,13 @@ install: true
before_script
:
before_script
:
-
if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi
-
if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi
script
:
script
:
-
scons bindings=$BINDINGS test
-
scons bindings=$BINDINGS test --coverage
after_success
:
-
lcov --capture --directory build/opt/src --output-file coverage.info
-
coveralls-lcov coverage.info
notifications
:
notifications
:
irc
:
irc
:
channels
:
channels
:
-
"
irc.upstandinghackers.com#hammer"
-
"
irc.upstandinghackers.com#hammer"
use_notice
:
true
use_notice
:
true
skip_join
:
true
skip_join
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment