-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
75 lines (68 loc) · 1.89 KB
/
Jenkinsfile
File metadata and controls
75 lines (68 loc) · 1.89 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
pipeline {
agent any
environment {
PIXI_HOME = "${WORKSPACE}/.pixi"
}
stages {
stage('Setup') {
steps {
sh '''
# Install pixi if not available
if ! command -v pixi &> /dev/null; then
curl -fsSL https://pixi.sh/install.sh | bash
export PATH="$HOME/.pixi/bin:$PATH"
fi
pixi install
pixi run install
'''
}
}
stage('Lint') {
steps {
sh 'pixi run lint'
}
}
stage('Test') {
steps {
sh 'pixi run test'
}
post {
always {
junit allowEmptyResults: true, testResults: 'results.xml'
}
}
}
stage('Examples') {
parallel {
stage('Hydro Chain') {
steps {
sh 'pixi run python examples/hydro_chain/run_workflow.py'
}
}
stage('Signal Chain') {
steps {
sh 'pixi run python examples/signal_chain/run_workflow.py'
}
}
stage('Lotka-Volterra') {
steps {
sh 'pixi run python examples/lotka_volterra/run_workflow.py'
}
}
stage('Leaf River') {
steps {
sh 'pixi run python examples/leaf_river/run_workflow.py'
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'results.xml', allowEmptyArchive: true
}
cleanup {
cleanWs()
}
}
}