Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 9bd6b36

Browse files
Use the checkout option in the testing job. Cleaning up...
1 parent 65b7fdd commit 9bd6b36

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.circleci/config.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,23 @@ jobs:
8080
- multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}-<< parameters.platforms >>
8181
- run: uname -a
8282
- run: docker info
83-
- run: |
84-
echo "CIRCLE_WORKFLOW_ID = " $CIRCLE_WORKFLOW_ID
85-
echo "Load built images into Docker"
86-
docker load -i multi-arch-images.tar
87-
- run: |
88-
git clone https://github.com/seleniumhq-community/docker-seleniarm.git
89-
cd docker-seleniarm
90-
git checkout $CIRCLE_BRANCH
91-
echo $PWD
92-
- run: |
93-
echo "Use Python3 and pip3 instead of Python2.7"
94-
cd docker-seleniarm
95-
sed -i 's/pip /pip3 /g' tests/bootstrap.sh
96-
sed -i 's/python /python3 /g' tests/bootstrap.sh
97-
sed -i 's/-m pip3 /-m pip /g' tests/bootstrap.sh
83+
- run:
84+
name: "Load built images from cache into Docker"
85+
command: |
86+
echo "CIRCLE_WORKFLOW_ID = " $CIRCLE_WORKFLOW_ID
87+
docker load -i multi-arch-images.tar
88+
- checkout
89+
- run:
90+
name: "Use Python3 and pip3 instead of Python2.7"
91+
command: |
92+
echo "Use Python3 and pip3 instead of Python2.7"
93+
sed -i 's/pip /pip3 /g' tests/bootstrap.sh
94+
sed -i 's/python /python3 /g' tests/bootstrap.sh
95+
sed -i 's/-m pip3 /-m pip /g' tests/bootstrap.sh
9896
- run:
97+
name: "Test Docker images"
9998
no_output_timeout: 2m
10099
command: |
101-
echo "Test Docker images"
102-
cd docker-seleniarm
103-
echo $PWD
104100
export USE_RANDOM_USER=false
105101
export BRANCH=$CIRCLE_BRANCH
106102
USE_RANDOM_USER_ID=${USE_RANDOM_USER} NAMESPACE=${NAMESPACE} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} SKIP_BUILD=true make test_multi_arch

0 commit comments

Comments
 (0)