Skip to content

Commit ce655f6

Browse files
authored
Update config.yml
1 parent 5c74739 commit ce655f6

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.circleci/config.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ jobs:
2121
- run:
2222
name: Install Python 3.11
2323
command: |
24-
# Currently highest available 3.11 on CircleCI runner
2524
test -d /opt/circleci/.pyenv/versions/3.11.1 || pyenv install 3.11.1
2625
pyenv global 3.11.1
2726
- run:
28-
name: Install LocalStack CLI
29-
command: python3 -m pip install localstack awscli-local[ver1]
27+
name: Install LocalStack CLI + awslocal
28+
command: |
29+
python3 -m pip install --user --upgrade pip
30+
python3 -m pip install --user localstack awscli-local[ver1]
31+
echo 'export PATH=$HOME/.local/bin:$PATH' >> "$BASH_ENV"
3032
- run:
3133
name: Start LocalStack
3234
command: |
35+
source "$BASH_ENV"
3336
docker pull localstack/localstack:latest
3437
localstack start -d
3538
localstack wait -t 60
@@ -44,7 +47,9 @@ jobs:
4447
command: deployment/awslocal/deploy.sh
4548
- run:
4649
name: Export state
47-
command: localstack state export ls-state.zip
50+
command: |
51+
source "$BASH_ENV"
52+
localstack state export ls-state.zip
4853
- persist_to_workspace:
4954
root: .
5055
paths:
@@ -72,14 +77,18 @@ jobs:
7277
- restore_cache:
7378
key: python-deps-
7479
- run:
75-
name: Choose python version
80+
name: Choose Python version
7681
command: pyenv global 3.11.1
7782
- run:
78-
name: Install LocalStack CLI
79-
command: python3 -m pip install localstack awscli-local[ver1]
83+
name: Install LocalStack CLI + awslocal
84+
command: |
85+
python3 -m pip install --user --upgrade pip
86+
python3 -m pip install --user localstack awscli-local[ver1]
87+
echo 'export PATH=$HOME/.local/bin:$PATH' >> "$BASH_ENV"
8088
- run:
8189
name: Start LocalStack
8290
command: |
91+
source "$BASH_ENV"
8392
docker pull localstack/localstack:latest
8493
localstack start -d
8594
localstack wait -t 60
@@ -90,14 +99,18 @@ jobs:
9099
at: .
91100
- run:
92101
name: Import state
93-
command: test -f ls-state.zip && localstack state import ls-state.zip
102+
command: |
103+
source "$BASH_ENV"
104+
test -f ls-state.zip && localstack state import ls-state.zip
94105
- run:
95-
name: Run Tests
106+
name: Run tests
96107
command: pytest tests
97108
- run:
98109
when: on_fail
99-
name: Dump Localstack logs
100-
command: localstack logs | tee localstack.log
110+
name: Dump LocalStack logs
111+
command: |
112+
source "$BASH_ENV"
113+
localstack logs | tee localstack.log
101114
- store_artifacts:
102115
path: localstack.log
103116

0 commit comments

Comments
 (0)