diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index dc7301a4..afa7ff4f 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -9,11 +9,10 @@ pipelines: services: - postgres caches: - - pip - - cypress + - vbvpip script: - source ./env/bitbucket/prepare_for_test.sh - - pip3 install -r server/requirements/requirements-dev.txt + - pip install -r server/requirements/requirements-dev.txt - git-crypt status -e | sort > git-crypt-encrypted-files-check.txt && diff git-crypt-encrypted-files.txt git-crypt-encrypted-files-check.txt - trufflehog --exclude_paths trufflehog-exclude-patterns.txt --allow trufflehog-allow.json --entropy=True --max_depth=100 . - ./server/run_tests_coverage.sh @@ -28,11 +27,13 @@ pipelines: - cypress/**/*.mp4 caches: - node - - pip + - vbvpip - cypress script: - source ./env/bitbucket/prepare_for_test.sh - - pip3 install -r server/requirements/requirements-dev.txt + - python -m venv vbvvenv + - source vbvvenv/bin/activate + - pip install -r server/requirements/requirements-dev.txt - npm install - ./prepare_server_cypress.sh --start-background - npm run cypress:ci @@ -69,6 +70,7 @@ pipelines: definitions: caches: cypress: /root/.cache/Cypress + vbvpip: /opt/atlassian/pipelines/agent/build/vbvvenv/ services: postgres: image: postgres diff --git a/env/bitbucket/prepare_for_test.sh b/env/bitbucket/prepare_for_test.sh index 1c06d7ae..612ab3b3 100755 --- a/env/bitbucket/prepare_for_test.sh +++ b/env/bitbucket/prepare_for_test.sh @@ -8,3 +8,7 @@ export PG_USER="postgres" export PG_PORT=5432 export OPENSSL_CONF=/etc/ssl/ + +python -m venv vbvvenv +source vbvvenv/bin/activate +export PATH="$PWD/vbvvenv/bin:$PATH"