Skip to content

Commit d5a04ac

Browse files
committed
coveralls test
1 parent 45fd319 commit d5a04ac

33 files changed

+1474
-68
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/.travis.yml export-ignore
88
/phpunit.* export-ignore
99
/CHANGELOG.md export-ignore
10+
/apigen.neon export-ignore
11+
/coverage export-ignore

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
apigen.neon
21
vendor
32
composer.lock
4-
local-test.php

.travis.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
language: php
22

33
php:
4-
- hhvm
54
- 5.6
65
- 5.5
76
- 5.4
87
- 7.0
98
- nightly
109

11-
before_install:
12-
- mkdir -p /home/travis/.phpenv/versions/hhvm/etc
13-
1410
before_script:
15-
- phpenv config-add phpunit.cnf.ini
16-
- composer self-update
17-
- composer update --no-dev -o
11+
- composer self-update
12+
- phpenv config-add phpunit.cnf.ini
13+
- composer update
14+
- composer require satooshi/php-coveralls
15+
16+
script:
17+
- mkdir -p build/logs
18+
- phpunit -v --coverage-clover build/logs/clover.xml
1819

19-
script: phpunit --stderr --coverage-text
20+
after_script:
21+
- chmod 777 build/logs/clover.xml
22+
- php vendor/bin/coveralls -v
2023

2124
notifications:
2225
on_success: change
@@ -27,4 +30,3 @@ matrix:
2730
allow_failures:
2831
- php: 7.0
2932
- php: nightly
30-
- php: hhvm

apigen.neon

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Source file or directory to parse
2+
source: 'src'
3+
# Directory where to save the generated documentation
4+
destination: 'docs'
5+
# List of allowed file extensions
6+
extensions: [php]
7+
# Character set of source files
8+
charset: [utf-8]
9+
10+
templateTheme: bootstrap
11+
12+
# Title of generated documentation
13+
title: 'AloFramework Common Components 1.1 API'
14+
# Grouping of classes
15+
groups: auto
16+
17+
# Generate documentation for methods and properties with given access level
18+
accessLevels: [public, protected]
19+
# Generate documentation for elements marked as internal and display internal documentation parts
20+
internal: No
21+
# Generate documentation for PHP internal classes
22+
php: Yes
23+
# Generate tree view of classes, interfaces and exceptions
24+
tree: Yes
25+
# Generate documentation for deprecated classes, methods, properties and constants
26+
deprecated: Yes
27+
# Generate documentation of tasks
28+
todo: Yes
29+
# Generate highlighted source code files
30+
noSourceCode: Yes
31+
# Add a link to download documentation as a ZIP archive
32+
download: No
33+
34+
# Don't display scanning and generating messages
35+
quiet: No
36+
# Display additional information in case of an error
37+
debug: Yes

coverage/Alo.php.html

+470
Large diffs are not rendered by default.

coverage/css/bootstrap.min.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coverage/css/nv.d3.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coverage/css/style.css

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
body {
2+
padding-top: 10px;
3+
}
4+
5+
.popover {
6+
max-width: none;
7+
}
8+
9+
.glyphicon {
10+
margin-right:.25em;
11+
}
12+
13+
.table-bordered>thead>tr>td {
14+
border-bottom-width: 1px;
15+
}
16+
17+
.table tbody>tr>td, .table thead>tr>td {
18+
padding-top: 3px;
19+
padding-bottom: 3px;
20+
}
21+
22+
.table-condensed tbody>tr>td {
23+
padding-top: 0;
24+
padding-bottom: 0;
25+
}
26+
27+
.table .progress {
28+
margin-bottom: inherit;
29+
}
30+
31+
.table-borderless th, .table-borderless td {
32+
border: 0 !important;
33+
}
34+
35+
.table tbody tr.covered-by-large-tests, li.covered-by-large-tests, tr.success, td.success, li.success, span.success {
36+
background-color: #dff0d8;
37+
}
38+
39+
.table tbody tr.covered-by-medium-tests, li.covered-by-medium-tests {
40+
background-color: #c3e3b5;
41+
}
42+
43+
.table tbody tr.covered-by-small-tests, li.covered-by-small-tests {
44+
background-color: #99cb84;
45+
}
46+
47+
.table tbody tr.danger, .table tbody td.danger, li.danger, span.danger {
48+
background-color: #f2dede;
49+
}
50+
51+
.table tbody td.warning, li.warning, span.warning {
52+
background-color: #fcf8e3;
53+
}
54+
55+
.table tbody td.info {
56+
background-color: #d9edf7;
57+
}
58+
59+
td.big {
60+
width: 117px;
61+
}
62+
63+
td.small {
64+
}
65+
66+
td.codeLine {
67+
font-family: monospace;
68+
white-space: pre;
69+
}
70+
71+
td span.comment {
72+
color: #888a85;
73+
}
74+
75+
td span.default {
76+
color: #2e3436;
77+
}
78+
79+
td span.html {
80+
color: #888a85;
81+
}
82+
83+
td span.keyword {
84+
color: #2e3436;
85+
font-weight: bold;
86+
}
87+
88+
pre span.string {
89+
color: #2e3436;
90+
}
91+
92+
span.success, span.warning, span.danger {
93+
margin-right: 2px;
94+
padding-left: 10px;
95+
padding-right: 10px;
96+
text-align: center;
97+
}
98+
99+
#classCoverageDistribution, #classComplexity {
100+
height: 200px;
101+
width: 475px;
102+
}
103+
104+
#toplink {
105+
position: fixed;
106+
left: 5px;
107+
bottom: 5px;
108+
outline: 0;
109+
}
110+
111+
svg text {
112+
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
113+
font-size: 11px;
114+
color: #666;
115+
fill: #666;
116+
}
117+
118+
.scrollbox {
119+
height:245px;
120+
overflow-x:hidden;
121+
overflow-y:scroll;
122+
}

0 commit comments

Comments
 (0)