forked from plone/volto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
50 lines (45 loc) · 1.38 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!groovy
pipeline {
agent any
stages {
// Build
stage('Build') {
agent {
label 'virtualenv'
}
steps {
deleteDir()
checkout scm
sh 'yarn install'
sh 'yarn build'
sh '/srv/python2.7.15/bin/virtualenv env --no-site-packages'
sh 'env/bin/pip install zc.recipe.egg==2.0.4 --no-cache-dir'
sh 'env/bin/pip install -r api/docker/requirements.txt'
sh 'env/bin/pip install -U https://github.com/zopefoundation/z3c.autoinclude/archive/pip.tar.gz#egg=z3c.autoinclude'
wrap([$class: 'Xvfb']) {
sh 'PYTHONPATH=$(pwd)/tests env/bin/pybot -v BROWSER:headlesschrome tests'
}
sh 'ls -al'
// sh 'make build'
// sh 'tar cfz build.tgz bin develop-eggs include lib parts src *.cfg Makefile requirements.txt'
// stash includes: 'build.tgz', name: 'build.tgz'
}
post {
always {
step([
$class: 'RobotPublisher',
disableArchiveOutput: false,
logFileName: 'parts/test/robot_log.html',
onlyCritical: true,
otherFiles: '**/*.png',
outputFileName: 'parts/test/robot_output.xml',
outputPath: '.',
passThreshold: 100,
reportFileName: 'parts/test/robot_report.html',
unstableThreshold: 0
]);
}
}
}
}
}