Skip to content

Commit 69b3e23

Browse files
author
Bastien Abadie
committed
Add Taskcluster CI for report
1 parent bb8c09e commit 69b3e23

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

.taskcluster.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,25 @@ tasks:
137137
138138
source: https://github.com/mozilla/code-coverage
139139

140+
- taskId: {$eval: as_slugid("report_check_tests")}
141+
provisionerId: aws-provisioner-v1
142+
workerType: github-worker
143+
created: {$fromNow: ''}
144+
deadline: {$fromNow: '1 hour'}
145+
payload:
146+
maxRunTime: 3600
147+
image: python:3.7
148+
command:
149+
- sh
150+
- -lxce
151+
- "git clone --quiet ${repository} /src && cd /src && git checkout ${head_rev} -b checks &&
152+
cd /src/report && ./ci-test.sh"
153+
metadata:
154+
name: "Code Coverage Report checks: unit tests"
155+
description: Check python code with unittest
156+
157+
source: https://github.com/mozilla/code-coverage
158+
140159
- taskId: {$eval: as_slugid("backend_build")}
141160
created: {$fromNow: ''}
142161
deadline: {$fromNow: '1 hour'}

report/.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.Python
2+
build/
3+
develop-eggs/
4+
dist/
5+
downloads/
6+
eggs/
7+
.eggs/
8+
lib/
9+
lib64/
10+
parts/
11+
sdist/
12+
var/
13+
wheels/
14+
pip-wheel-metadata/
15+
share/python-wheels/
16+
*.egg-info/
17+
.installed.cfg
18+
*.egg
19+
MANIFEST
20+
cache/
21+
ccov-artifacts/
22+
grcov
23+
grcov_ver
24+
lcov-bin/
25+
lcov/
26+
output.info
27+
report/

report/ci-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
pip install -r test-requirements.txt
4+
5+
python -m unittest discover tests
6+
python setup.py sdist bdist_wheel
7+
pip install dist/firefox_code_coverage-1.0.0.tar.gz

report/test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
pre-commit==1.18.3
21
setuptools==41.4.0
32
wheel==0.33.6

0 commit comments

Comments
 (0)