-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathJenkinsfile
29 lines (24 loc) · 978 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
node {
stage 'build'
sh 'rm -rf webister && git clone https://github.com/alwaysontop617/webister.git'
sh 'cd webister && cp -R * ../'
sh 'echo "Compiling Packages..."'
sh 'dpkg-deb --build application'
stage 'req'
sh 'wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.1.2/php-cs-fixer.phar -O php-cs-fixer'
parallel 'test': {
sh 'wget https://raw.githubusercontent.com/alwaysontop617/webister/master/test.sh'
sh 'sh test.sh > logtest.txt'
sh 'curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar'
sh 'php phpcs.phar --ignore=*adminer* --encoding=utf-8 --severity=3 --extensions=php -n -p -l -v application/tmp/webister/interface/ > logstyle.txt || :'
}
stage 'md5'
sh 'md5sum logtest.txt logstyle.txt application.deb > md5.txt'
stage 'archive'
archive 'application.deb'
archive 'logtest.txt'
archive 'logstyle.txt'
archive 'md5.txt'
stage 'clean'
sh 'rm -rf *'
}