forked from elifesciences/bot-lax-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
47 lines (38 loc) · 1.29 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
elifeLibrary({
stage 'Checkout', {
checkout scm
}
stage 'Project tests', {
elifeLocalTests "./project_tests.sh"
echo 'Checking changes have not been generated by the style checker. If this fails, run .lint.sh from your the venv/ virtualenv'
sh 'git diff --exit-code'
}
stage 'Guinea pigs', {
sh './download-elife-xml.sh'
sh './guinea-pigs.sh'
}
stage 'Kitchen sinks', {
sh './kitchen-sinks.sh'
}
stage 'Corpus generation', {
sh 'rm -f generation.log'
sh './generate-article-json.sh'
archive 'generation.log'
sh './generate-statistics.sh generation.log'
}
stage 'Corpus validation', {
sh 'rm -f validation.log'
sh './validate-all-json.sh'
archive 'validation.log'
sh './validate-statistics.sh validation.log'
}
elifeMainlineOnly {
stage 'Master', {
elifeGithubCommitStatus elifeGitRevision(), 'success', 'continuous-integration/jenkins/pr-head', 'Alfred automated merge to master'
elifeGitMoveToBranch elifeGitRevision(), 'master'
}
stage 'Downstream', {
build job: 'dependencies-lax-update-bot-lax-adaptor', wait: false
}
}
}, 'elife-libraries--powerful3', 600)