-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (43 loc) · 915 Bytes
/
Jenkinsfile
File metadata and controls
44 lines (43 loc) · 915 Bytes
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
/*
If you don't know what this file is, you can ignore it completely.
It has nothing to do with making the PythonQOL code work.
It is related making it easier to test or use PythonQOL in a code pipeline.
*/
pipeline {
agent any
stages {
stage('update') {
steps {
sh '''#!/bin/csh
echo hello jenkins
echo $PATH
'''
}
}
stage('installing') {
steps {
sh '''#!/bin/csh
pip install -e .
'''
}
}
stage('create test py') {
steps {
sh '''#!/bin/csh
cat <<-'TEST_CASES' > test.py
#!/usr/bin/env python
import QOL.files as fqol
import QOL.plots as pqol
'''
}
}
stage('test import') {
steps {
sh '''#!/bin/csh
python -m test.py || [[ $? -eq 1 ]]
exit
'''
}
}
}
}