Skip to content
Snippets Groups Projects
Commit faa5e2b3 authored by nimrod's avatar nimrod
Browse files

- Use virtualenv to avoid root access.

parent 2dc8d94c
Branches
No related tags found
No related merge requests found
...@@ -3,14 +3,15 @@ pipeline { ...@@ -3,14 +3,15 @@ pipeline {
stages { stages {
stage('install') { stage('install') {
steps { steps {
sh 'pip install -r tests/requirements.txt' sh 'virtualenv example'
sh 'ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles' sh '. example/bin/activate && pip install -r tests/requirements.txt'
sh 'molecule dependency' sh '. example/bin/activate && ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles'
sh '. example/bin/activate && molecule dependency'
} }
} }
stage('test') { stage('test') {
steps { steps {
sh 'pre-commit run --all-files' sh '. example/bin/activate && pre-commit run --all-files'
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment