Conditions | 4 |
Paths | 6 |
Total Lines | 39 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
15 | |||
16 | |||
17 | public function getBeforeScript(): ?string |
||
18 | { |
||
19 | return 'sudo apt remove -y nodejs && curl ' |
||
20 | . '-sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh && sudo bash nodesource_setup.sh ' |
||
21 | . '&& sudo apt install -y build-essential nodejs && which npm && npm install [email protected]'; |
||
22 | } |
||
23 | |||
24 | |||
25 | public function getScript(): ?string |
||
26 | { |
||
27 | return 'node_modules/jscpd/bin/jscpd src && node_modules/jscpd/bin/jscpd tests'; |
||
28 | } |
||
29 | } |
||
30 |