-
Notifications
You must be signed in to change notification settings - Fork 157
/
bitbucket-pipelines.yml
36 lines (31 loc) · 1.42 KB
/
bitbucket-pipelines.yml
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
image: python:3.11-slim
pipelines:
default:
- step:
name: DevAI CLI
caches:
- pip
script:
- apt-get update && apt-get install -y git
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- cd devai-cli/src
- pip install -r requirements.txt
- pip install --editable .
- export GIT_PYTHON_REFRESH=quiet
- devai echo
- cd ../..
- export GOOGLE_CLOUD_CREDENTIALS=$(echo $GOOGLE_CLOUD_CREDENTIALS)
- echo $GOOGLE_CLOUD_CREDENTIALS > service-account-key.json
- export GOOGLE_APPLICATION_CREDENTIALS="service-account-key.json"
- export PROJECT_ID=$(echo $PROJECT_ID)
- export LOCATION=$(echo $LOCATION)
- export JIRA_API_TOKEN=$(echo $JIRA_API_TOKEN)
- export JIRA_USERNAME=$(echo $JIRA_USERNAME)
- export JIRA_INSTANCE_URL=$(echo $JIRA_INSTANCE_URL)
- export JIRA_PROJECT_KEY=$(echo $JIRA_PROJECT_KEY)
- export JIRA_CLOUD=true
- devai review code -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader
- devai review performance -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader
- devai review security -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader