File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 7
7
checkout scm
8
8
9
9
sh '''
10
+ export PATH=/var/lib/jenkins/.local/bin:$PATH # needed for pdm
10
11
cd $WORKSPACE
11
12
git fetch --tags
12
- rm -rf venv && python3 -m venv venv
13
- . venv/bin/activate
14
- pip3 install -r requirements_dev.txt
13
+ pdm venv remove -y in-project || echo "No pdm venv so far, continuing"
14
+ pdm sync --clean
15
15
cat <<ENDOFFILE > my.cnf
16
16
[client]
17
17
database = pytition
@@ -44,23 +44,22 @@ mysql --defaults-extra-file=$PWD/my.cnf -e "drop database pytition; create datab
44
44
45
45
echo "Running database migrations"
46
46
47
- cd pytition && python3 ./manage.py migrate && cd -
47
+ cd pytition && pdm run python3 ./manage.py migrate && cd -
48
48
49
49
echo "Generating documentation"
50
50
51
- cd doc && make html
51
+ cd doc && pdm run make html
52
52
cd -
53
53
54
54
echo "Compiling translations"
55
55
56
- cd pytition && python3 ./manage.py compilemessages && cd -
56
+ cd pytition && pdm run python3 ./manage.py compilemessages && cd -
57
57
58
58
echo "Running tests"
59
59
60
- coverage erase
61
- coverage run ./pytition/manage.py test --noinput petition
62
- coverage xml --include='pytition/*'
63
- deactivate
60
+ pdm run coverage erase
61
+ pdm run coverage run ./pytition/manage.py test --noinput petition
62
+ pdm run coverage xml --include='pytition/*'
64
63
'''
65
64
step([$class : ' CoberturaPublisher' ,
66
65
autoUpdateHealth : false ,
You can’t perform that action at this time.
0 commit comments