Skip to content

Commit 122ff7f

Browse files
committed
Build with Jenkins CI
1 parent 7746aff commit 122ff7f

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('build') {
5+
parallel {
6+
stage('python2') {
7+
agent {
8+
docker {
9+
image 'python:2'
10+
}
11+
}
12+
steps {
13+
sh 'cat /etc/resolv.conf'
14+
sh 'python2 setup.py build'
15+
sh 'python2 setup.py test'
16+
sh 'python2 setup.py install'
17+
}
18+
}
19+
stage('python3') {
20+
agent {
21+
docker {
22+
image 'python:3'
23+
}
24+
}
25+
steps {
26+
sh 'cat /etc/resolv.conf'
27+
sh 'python3 setup.py build'
28+
sh 'python3 setup.py test'
29+
sh 'python3 setup.py install'
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)