Skip to content

Commit 2f62fb8

Browse files
committed
Updated gitlab job to use a virtual Python env
1 parent 6c27ca0 commit 2f62fb8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ run_unit_tests:
2222
tags:
2323
- "runner:docker"
2424

25-
image: eclipse-temurin:8u442-b06-jdk
25+
image: &jdk-image eclipse-temurin:8u452-b09-jdk
2626

2727
script:
2828
- ./mvnw -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dtests.log_level=info -Djdk.attach.allowAttachSelf=true -B test
@@ -46,16 +46,19 @@ deploy_to_sonatype:
4646
tags:
4747
- "runner:docker"
4848

49-
image: eclipse-temurin:8u442-b06-jdk
49+
image: *jdk-image
5050

5151
script:
5252
# Ensure we don't print commands being run to the logs during credential
5353
# operations
5454
- set +x
5555

56-
- echo "Installing AWSCLI..."
56+
- echo "Setting up Python virtual environment..."
5757
- apt update
58-
- apt install -y python3 python3-pip
58+
- apt install -y python3 python3-pip python3-venv
59+
- python3 -m venv venv
60+
- source venv/bin/activate
61+
- python3 -m pip install --upgrade pip
5962
- python3 -m pip install awscli
6063

6164
- echo "Fetching Sonatype user..."

0 commit comments

Comments
 (0)