forked from georgia-tech-db/evadb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
61 lines (49 loc) · 1.25 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
51
52
53
54
55
56
57
58
59
60
61
def buildNumber = BUILD_NUMBER as int; if (buildNumber > 1) milestone(buildNumber - 1); milestone(buildNumber) // JENKINS-43353 / JENKINS-58625
pipeline {
agent {
dockerfile {
filename 'docker/jenkins.Dockerfile'
args '--gpus all'
}
}
options{
buildDiscarder(logRotator(numToKeepStr: '8', daysToKeepStr: '20'))
}
stages {
stage('Setup and Install Packages') {
parallel {
stage('Setup Virtual Environment') {
steps {
sh '''python3 -m venv env37
. env37/bin/activate
pip install --upgrade pip
pip install scikit-build
pip install cython
pip install -e ."[dev]"
'''
}
}
}
}
stage('CUDA GPU Check') {
steps {
sh '''. env37/bin/activate
python3 -c "import torch; torch.cuda.current_device()"
'''
}
}
stage('Run Tests') {
steps {
sh '''. env37/bin/activate
sh script/test/test.sh
'''
}
}
stage('Coverage Check') {
steps {
sh '''. env37/bin/activate
coveralls'''
}
}
}
}