forked from nginx/nginx
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
25 lines (24 loc) · 1.18 KB
/
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
properties([
disableConcurrentBuilds(),
pipelineTriggers([githubPush()]),
])
stage("Build") {
def before = {
sh '''
apt-get install -y --no-install-recommends git wget
git clone https://github.com/nginx/nginx-tests.git || git -C nginx-tests pull --rebase
rm -rf opt && mkdir -p opt/nginx-tests
cp -aR nginx-tests/* opt/nginx-tests
tar cJf nginx-tests.tar.xz opt
# TODO: use perl from pkg.FreeBSD.org? (for some reason can't extract it properly though)
# wget https://transfer.sh/AmikH/perl-mips-junit.tar.xz
wget http://www.cl.cam.ac.uk/~alr48/files/perl-mips-junit.tar.xz
ls -la
'''
}
cheribuildProject(name:'nginx', extraArgs: '--with-libstatcounters --nginx/no-debug-info',
targets: ['mips'], // only run one for now
testScript: 'cd /opt/$CPU/ && sh -xe ./run-nginx-tests.sh',
beforeTests: before, testExtraArgs: '--test-archive nginx-tests.tar.xz --test-archive perl-mips-junit.tar.xz',
minimalTestImage: false,) // TODO: once we need perl this will no longer be true
}