Skip to content

Commit e78e127

Browse files
committed
💚 Add Travis to build pipeline
1 parent 777fb75 commit e78e127

13 files changed

+2147
-0
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- "8"
5+
branches:
6+
only:
7+
- master
8+
cache:
9+
directories:
10+
- node_modules
11+
before_install:
12+
- npm update
13+
install:
14+
- npm install
15+
script:
16+
- npm test -- -u
17+
- npm run coveralls -- -u

coverage/clover.xml

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<coverage generated="1591828330682" clover="3.2.0">
3+
<project timestamp="1591828330683" name="All files">
4+
<metrics statements="103" coveredstatements="100" conditionals="106" coveredconditionals="97" methods="15" coveredmethods="13" elements="224" coveredelements="210" complexity="0" loc="103" ncloc="103" packages="1" files="2" classes="2"/>
5+
<file name="Constants.ts" path="/mnt/c/Users/alzajac/Desktop/Programmation/Training/react-native-skeleton-content/src/Constants.ts">
6+
<metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
7+
<line num="42" count="1" type="stmt"/>
8+
<line num="43" count="1" type="stmt"/>
9+
<line num="44" count="1" type="stmt"/>
10+
<line num="45" count="1" type="stmt"/>
11+
<line num="46" count="1" type="stmt"/>
12+
<line num="47" count="1" type="stmt"/>
13+
<line num="48" count="1" type="stmt"/>
14+
<line num="49" count="1" type="stmt"/>
15+
</file>
16+
<file name="SkeletonContent.tsx" path="/mnt/c/Users/alzajac/Desktop/Programmation/Training/react-native-skeleton-content/src/SkeletonContent.tsx">
17+
<metrics statements="95" coveredstatements="92" conditionals="106" coveredconditionals="97" methods="15" coveredmethods="13"/>
18+
<line num="20" count="1" type="stmt"/>
19+
<line num="21" count="1" type="stmt"/>
20+
<line num="23" count="1" type="stmt"/>
21+
<line num="39" count="1" type="stmt"/>
22+
<line num="40" count="16" type="stmt"/>
23+
<line num="42" count="16" type="stmt"/>
24+
<line num="43" count="0" type="stmt"/>
25+
<line num="44" count="0" type="stmt"/>
26+
<line num="47" count="16" type="stmt"/>
27+
<line num="50" count="1" type="stmt"/>
28+
<line num="63" count="16" type="stmt"/>
29+
<line num="64" count="16" type="cond" truecount="2" falsecount="0"/>
30+
<line num="65" count="16" type="cond" truecount="2" falsecount="0"/>
31+
<line num="66" count="16" type="stmt"/>
32+
<line num="70" count="16" type="stmt"/>
33+
<line num="72" count="16" type="stmt"/>
34+
<line num="73" count="0" type="stmt"/>
35+
<line num="92" count="16" type="stmt"/>
36+
<line num="93" count="16" type="stmt"/>
37+
<line num="94" count="16" type="cond" truecount="2" falsecount="0"/>
38+
<line num="95" count="14" type="cond" truecount="2" falsecount="0"/>
39+
<line num="102" count="11" type="stmt"/>
40+
<line num="103" count="3" type="cond" truecount="2" falsecount="0"/>
41+
<line num="104" count="1" type="stmt"/>
42+
<line num="105" count="2" type="cond" truecount="2" falsecount="0"/>
43+
<line num="106" count="1" type="stmt"/>
44+
<line num="107" count="1" type="cond" truecount="1" falsecount="1"/>
45+
<line num="108" count="1" type="stmt"/>
46+
<line num="111" count="16" type="stmt"/>
47+
<line num="114" count="16" type="stmt"/>
48+
<line num="115" count="16" type="stmt"/>
49+
<line num="116" count="16" type="cond" truecount="2" falsecount="0"/>
50+
<line num="117" count="14" type="cond" truecount="2" falsecount="0"/>
51+
<line num="122" count="9" type="stmt"/>
52+
<line num="123" count="5" type="cond" truecount="2" falsecount="0"/>
53+
<line num="128" count="3" type="stmt"/>
54+
<line num="129" count="2" type="cond" truecount="2" falsecount="0"/>
55+
<line num="130" count="1" type="stmt"/>
56+
<line num="131" count="1" type="cond" truecount="1" falsecount="1"/>
57+
<line num="132" count="1" type="stmt"/>
58+
<line num="135" count="16" type="stmt"/>
59+
<line num="138" count="16" type="stmt"/>
60+
<line num="139" count="16" type="stmt"/>
61+
<line num="141" count="16" type="stmt"/>
62+
<line num="142" count="23" type="stmt"/>
63+
<line num="148" count="23" type="cond" truecount="2" falsecount="0"/>
64+
<line num="149" count="3" type="stmt"/>
65+
<line num="151" count="20" type="stmt"/>
66+
<line num="152" count="20" type="cond" truecount="2" falsecount="0"/>
67+
<line num="154" count="23" type="stmt"/>
68+
<line num="157" count="16" type="stmt"/>
69+
<line num="158" count="18" type="stmt"/>
70+
<line num="159" count="18" type="stmt"/>
71+
<line num="163" count="18" type="cond" truecount="4" falsecount="0"/>
72+
<line num="164" count="16" type="stmt"/>
73+
<line num="166" count="2" type="stmt"/>
74+
<line num="168" count="18" type="stmt"/>
75+
<line num="171" count="16" type="stmt"/>
76+
<line num="172" count="18" type="stmt"/>
77+
<line num="175" count="18" type="cond" truecount="2" falsecount="0"/>
78+
<line num="179" count="18" type="cond" truecount="2" falsecount="0"/>
79+
<line num="183" count="18" type="cond" truecount="2" falsecount="0"/>
80+
<line num="188" count="14" type="stmt"/>
81+
<line num="189" count="4" type="cond" truecount="2" falsecount="0"/>
82+
<line num="194" count="2" type="stmt"/>
83+
<line num="195" count="2" type="cond" truecount="2" falsecount="0"/>
84+
<line num="196" count="1" type="stmt"/>
85+
<line num="197" count="1" type="cond" truecount="1" falsecount="1"/>
86+
<line num="198" count="1" type="stmt"/>
87+
<line num="200" count="18" type="stmt"/>
88+
<line num="203" count="16" type="stmt"/>
89+
<line num="204" count="1" type="cond" truecount="2" falsecount="0"/>
90+
<line num="209" count="16" type="stmt"/>
91+
<line num="210" count="5" type="cond" truecount="2" falsecount="0"/>
92+
<line num="213" count="16" type="stmt"/>
93+
<line num="214" count="18" type="stmt"/>
94+
<line num="215" count="18" type="cond" truecount="2" falsecount="0"/>
95+
<line num="233" count="16" type="cond" truecount="1" falsecount="0"/>
96+
<line num="234" count="15" type="cond" truecount="2" falsecount="0"/>
97+
<line num="235" count="12" type="stmt"/>
98+
<line num="236" count="12" type="stmt"/>
99+
<line num="238" count="18" type="cond" truecount="4" falsecount="0"/>
100+
<line num="239" count="1" type="cond" truecount="2" falsecount="0"/>
101+
<line num="240" count="1" type="stmt"/>
102+
<line num="241" count="1" type="stmt"/>
103+
<line num="243" count="17" type="cond" truecount="2" falsecount="0"/>
104+
<line num="247" count="2" type="cond" truecount="1" falsecount="1"/>
105+
<line num="249" count="15" type="cond" truecount="2" falsecount="0"/>
106+
<line num="255" count="3" type="stmt"/>
107+
<line num="256" count="6" type="cond" truecount="1" falsecount="1"/>
108+
<line num="257" count="6" type="cond" truecount="4" falsecount="0"/>
109+
<line num="258" count="3" type="stmt"/>
110+
<line num="260" count="3" type="stmt"/>
111+
<line num="266" count="16" type="stmt"/>
112+
<line num="271" count="1" type="stmt"/>
113+
</file>
114+
</project>
115+
</coverage>

coverage/coverage-final.json

+3
Large diffs are not rendered by default.
+226
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
5+
<head>
6+
<title>Code coverage report for Constants.ts</title>
7+
<meta charset="utf-8" />
8+
<link rel="stylesheet" href="prettify.css" />
9+
<link rel="stylesheet" href="base.css" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1">
11+
<style type='text/css'>
12+
.coverage-summary .sorter {
13+
background-image: url(sort-arrow-sprite.png);
14+
}
15+
</style>
16+
</head>
17+
18+
<body>
19+
<div class='wrapper'>
20+
<div class='pad1'>
21+
<h1><a href="index.html">All files</a> Constants.ts</h1>
22+
<div class='clearfix'>
23+
24+
<div class='fl pad1y space-right2'>
25+
<span class="strong">100% </span>
26+
<span class="quiet">Statements</span>
27+
<span class='fraction'>8/8</span>
28+
</div>
29+
30+
31+
<div class='fl pad1y space-right2'>
32+
<span class="strong">100% </span>
33+
<span class="quiet">Branches</span>
34+
<span class='fraction'>0/0</span>
35+
</div>
36+
37+
38+
<div class='fl pad1y space-right2'>
39+
<span class="strong">100% </span>
40+
<span class="quiet">Functions</span>
41+
<span class='fraction'>0/0</span>
42+
</div>
43+
44+
45+
<div class='fl pad1y space-right2'>
46+
<span class="strong">100% </span>
47+
<span class="quiet">Lines</span>
48+
<span class='fraction'>8/8</span>
49+
</div>
50+
51+
52+
</div>
53+
<p class="quiet">
54+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
55+
</p>
56+
</div>
57+
<div class='status-line high'></div>
58+
<pre><table class="coverage">
59+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
60+
<a name='L2'></a><a href='#L2'>2</a>
61+
<a name='L3'></a><a href='#L3'>3</a>
62+
<a name='L4'></a><a href='#L4'>4</a>
63+
<a name='L5'></a><a href='#L5'>5</a>
64+
<a name='L6'></a><a href='#L6'>6</a>
65+
<a name='L7'></a><a href='#L7'>7</a>
66+
<a name='L8'></a><a href='#L8'>8</a>
67+
<a name='L9'></a><a href='#L9'>9</a>
68+
<a name='L10'></a><a href='#L10'>10</a>
69+
<a name='L11'></a><a href='#L11'>11</a>
70+
<a name='L12'></a><a href='#L12'>12</a>
71+
<a name='L13'></a><a href='#L13'>13</a>
72+
<a name='L14'></a><a href='#L14'>14</a>
73+
<a name='L15'></a><a href='#L15'>15</a>
74+
<a name='L16'></a><a href='#L16'>16</a>
75+
<a name='L17'></a><a href='#L17'>17</a>
76+
<a name='L18'></a><a href='#L18'>18</a>
77+
<a name='L19'></a><a href='#L19'>19</a>
78+
<a name='L20'></a><a href='#L20'>20</a>
79+
<a name='L21'></a><a href='#L21'>21</a>
80+
<a name='L22'></a><a href='#L22'>22</a>
81+
<a name='L23'></a><a href='#L23'>23</a>
82+
<a name='L24'></a><a href='#L24'>24</a>
83+
<a name='L25'></a><a href='#L25'>25</a>
84+
<a name='L26'></a><a href='#L26'>26</a>
85+
<a name='L27'></a><a href='#L27'>27</a>
86+
<a name='L28'></a><a href='#L28'>28</a>
87+
<a name='L29'></a><a href='#L29'>29</a>
88+
<a name='L30'></a><a href='#L30'>30</a>
89+
<a name='L31'></a><a href='#L31'>31</a>
90+
<a name='L32'></a><a href='#L32'>32</a>
91+
<a name='L33'></a><a href='#L33'>33</a>
92+
<a name='L34'></a><a href='#L34'>34</a>
93+
<a name='L35'></a><a href='#L35'>35</a>
94+
<a name='L36'></a><a href='#L36'>36</a>
95+
<a name='L37'></a><a href='#L37'>37</a>
96+
<a name='L38'></a><a href='#L38'>38</a>
97+
<a name='L39'></a><a href='#L39'>39</a>
98+
<a name='L40'></a><a href='#L40'>40</a>
99+
<a name='L41'></a><a href='#L41'>41</a>
100+
<a name='L42'></a><a href='#L42'>42</a>
101+
<a name='L43'></a><a href='#L43'>43</a>
102+
<a name='L44'></a><a href='#L44'>44</a>
103+
<a name='L45'></a><a href='#L45'>45</a>
104+
<a name='L46'></a><a href='#L46'>46</a>
105+
<a name='L47'></a><a href='#L47'>47</a>
106+
<a name='L48'></a><a href='#L48'>48</a>
107+
<a name='L49'></a><a href='#L49'>49</a>
108+
<a name='L50'></a><a href='#L50'>50</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
109+
<span class="cline-any cline-neutral">&nbsp;</span>
110+
<span class="cline-any cline-neutral">&nbsp;</span>
111+
<span class="cline-any cline-neutral">&nbsp;</span>
112+
<span class="cline-any cline-neutral">&nbsp;</span>
113+
<span class="cline-any cline-neutral">&nbsp;</span>
114+
<span class="cline-any cline-neutral">&nbsp;</span>
115+
<span class="cline-any cline-neutral">&nbsp;</span>
116+
<span class="cline-any cline-neutral">&nbsp;</span>
117+
<span class="cline-any cline-neutral">&nbsp;</span>
118+
<span class="cline-any cline-neutral">&nbsp;</span>
119+
<span class="cline-any cline-neutral">&nbsp;</span>
120+
<span class="cline-any cline-neutral">&nbsp;</span>
121+
<span class="cline-any cline-neutral">&nbsp;</span>
122+
<span class="cline-any cline-neutral">&nbsp;</span>
123+
<span class="cline-any cline-neutral">&nbsp;</span>
124+
<span class="cline-any cline-neutral">&nbsp;</span>
125+
<span class="cline-any cline-neutral">&nbsp;</span>
126+
<span class="cline-any cline-neutral">&nbsp;</span>
127+
<span class="cline-any cline-neutral">&nbsp;</span>
128+
<span class="cline-any cline-neutral">&nbsp;</span>
129+
<span class="cline-any cline-neutral">&nbsp;</span>
130+
<span class="cline-any cline-neutral">&nbsp;</span>
131+
<span class="cline-any cline-neutral">&nbsp;</span>
132+
<span class="cline-any cline-neutral">&nbsp;</span>
133+
<span class="cline-any cline-neutral">&nbsp;</span>
134+
<span class="cline-any cline-neutral">&nbsp;</span>
135+
<span class="cline-any cline-neutral">&nbsp;</span>
136+
<span class="cline-any cline-neutral">&nbsp;</span>
137+
<span class="cline-any cline-neutral">&nbsp;</span>
138+
<span class="cline-any cline-neutral">&nbsp;</span>
139+
<span class="cline-any cline-neutral">&nbsp;</span>
140+
<span class="cline-any cline-neutral">&nbsp;</span>
141+
<span class="cline-any cline-neutral">&nbsp;</span>
142+
<span class="cline-any cline-neutral">&nbsp;</span>
143+
<span class="cline-any cline-neutral">&nbsp;</span>
144+
<span class="cline-any cline-neutral">&nbsp;</span>
145+
<span class="cline-any cline-neutral">&nbsp;</span>
146+
<span class="cline-any cline-neutral">&nbsp;</span>
147+
<span class="cline-any cline-neutral">&nbsp;</span>
148+
<span class="cline-any cline-neutral">&nbsp;</span>
149+
<span class="cline-any cline-yes">1x</span>
150+
<span class="cline-any cline-yes">1x</span>
151+
<span class="cline-any cline-yes">1x</span>
152+
<span class="cline-any cline-yes">1x</span>
153+
<span class="cline-any cline-yes">1x</span>
154+
<span class="cline-any cline-yes">1x</span>
155+
<span class="cline-any cline-yes">1x</span>
156+
<span class="cline-any cline-yes">1x</span>
157+
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { StyleProp, ViewStyle } from 'react-native';
158+
import { Easing } from 'react-native-reanimated';
159+
&nbsp;
160+
type animationType = 'none' | 'shiver' | 'pulse';
161+
type animationDirection =
162+
| 'horizontalLeft'
163+
| 'horizontalRight'
164+
| 'verticalTop'
165+
| 'verticalDown'
166+
| 'diagonalDownLeft'
167+
| 'diagonalDownRight'
168+
| 'diagonalTopLeft'
169+
| 'diagonalTopRight';
170+
&nbsp;
171+
export type CustomViewStyle = any;
172+
&nbsp;
173+
export interface ISkeletonContentProps {
174+
isLoading: boolean;
175+
layout?: CustomViewStyle[];
176+
duration?: number;
177+
containerStyle?: StyleProp&lt;ViewStyle&gt;;
178+
animationType?: 'none' | 'shiver' | 'pulse';
179+
animationDirection?:
180+
| 'horizontalLeft'
181+
| 'horizontalRight'
182+
| 'verticalTop'
183+
| 'verticalDown'
184+
| 'diagonalDownLeft'
185+
| 'diagonalDownRight'
186+
| 'diagonalTopLeft'
187+
| 'diagonalTopRight';
188+
boneColor?: string;
189+
highlightColor?: string;
190+
easing?: any;
191+
}
192+
&nbsp;
193+
export interface IDirection {
194+
x: number;
195+
y: number;
196+
}
197+
&nbsp;
198+
export const DEFAULT_BORDER_RADIUS: number = 4;
199+
export const DEFAULT_DURATION: number = 1200;
200+
export const DEFAULT_ANIMATION_TYPE: animationType = 'shiver';
201+
export const DEFAULT_ANIMATION_DIRECTION: animationDirection = 'horizontalRight';
202+
export const DEFAULT_BONE_COLOR: string = '#E1E9EE';
203+
export const DEFAULT_HIGHLIGHT_COLOR: string = '#F2F8FC';
204+
export const DEFAULT_EASING: any = Easing.bezier(0.5, 0, 0.25, 1);
205+
export const DEFAULT_LOADING = true;
206+
&nbsp;</pre></td></tr></table></pre>
207+
208+
<div class='push'></div><!-- for sticky footer -->
209+
</div><!-- /wrapper -->
210+
<div class='footer quiet pad2 space-top1 center small'>
211+
Code coverage generated by
212+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
213+
at Thu Jun 11 2020 00:32:10 GMT+0200 (Central European Summer Time)
214+
</div>
215+
</div>
216+
<script src="prettify.js"></script>
217+
<script>
218+
window.onload = function () {
219+
prettyPrint();
220+
};
221+
</script>
222+
<script src="sorter.js"></script>
223+
<script src="block-navigation.js"></script>
224+
</body>
225+
</html>
226+

0 commit comments

Comments
 (0)