forked from georgia-tech-db/evadb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile_weekly
62 lines (51 loc) · 1.15 KB
/
Jenkinsfile_weekly
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
pipeline {
agent {
dockerfile {
filename 'docker/jenkins.Dockerfile'
args '--gpus all'
}
}
options{
buildDiscarder(logRotator(numToKeepStr: '8', daysToKeepStr: '20'))
}
triggers {
cron '@weekly'
}
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_benchmark.sh
'''
}
}
stage('Coverage Check') {
steps {
sh '''. env37/bin/activate
coveralls'''
}
}
}
}