Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-analytics-data-api
Commits
6b6c0675
Commit
6b6c0675
authored
Feb 10, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report coverage stats to datadog.
parent
9b75ed3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
scripts/build-stats-to-datadog.sh
+33
-0
No files found.
scripts/build-stats-to-datadog.sh
0 → 100755
View file @
6b6c0675
#!/usr/bin/env bash
#
# This script will report various coverage metrics to datadog.
#
#
if
[
"
${
TRAVIS_BRANCH
}
"
=
"master"
]
&&
[
"
${
TRAVIS_PULL_REQUEST
}
"
=
"false"
]
&&
[
-n
"
${
DATADOG_API_KEY
}
"
]
then
echo
"Reporting coverage stats to datadog"
git clone https://github.com/wedaly/test-metrics
cd
test-metrics
virtualenv venv
source
./venv/bin/activate
pip install
-q
-r
requirements.txt
cat
>
unit_test_groups.json
<<
END
{
"unit.analytics_data_api": "analytics_data_api/*.py"
}
END
python
-m
metrics.coverage unit_test_groups.json
`
find ../build
-name
"coverage.xml"
`
deactivate
else
echo
"Note: Not reporting stats to datadog. Those are only reported for builds on master,
\
and when the datadog api key is available."
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment