Skip to content

Commit 43aabdf

Browse files
author
Samat Gaynutdinov
committed
fix script
1 parent 4bb53da commit 43aabdf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build-utbot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ jobs:
134134
build-portable-container:
135135
needs: build-utbot-and-generate-test
136136
runs-on: ubuntu-latest
137+
env:
138+
DOCKER_IMAGE_TAG: docker-image
139+
PORTABLE_CONTAINER_NAME: Portable
137140
steps:
138141
- name: Checkout repository
139142
uses: actions/checkout@v2
@@ -145,7 +148,7 @@ jobs:
145148

146149
- name: Build Portable docker image
147150
run: |
148-
docker build . --file docker/Dockerfile_portable
151+
docker build --tag $DOCKER_IMAGE_TAG . --file docker/Dockerfile_portable
149152
150153
- name: Download generated test
151154
uses: actions/download-artifact@v3

docker/action-scripts/check-portable-tests.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ set -e
77
CURRENT_FOLDER="$( cd $( dirname ${BASH_SOURCE[0]} ) && pwd )"
88
PROJECT_DIR=$CURRENT_FOLDER/../..
99

10-
PORTABLE_CONTAINER="Portable"
11-
1210
# run Portable container
13-
docker run -d --name $(PORTABLE_CONTAINER) $(docker images | awk '{print $1}' | awk 'NR==2') > /dev/null
11+
docker run -d --name $(PORTABLE_CONTAINER_NAME) $(DOCKER_IMAGE_TAG)
1412

1513
# Copy tests inside Portable container
16-
docker cp "$PROJECT_DIR/integration-tests/c-example/" $(PORTABLE_CONTAINER):/home/c-example
14+
docker cp "$PROJECT_DIR/integration-tests/c-example/" $(PORTABLE_CONTAINER_NAME):/home/c-example
1715

1816
# Jump to container and check portability
1917
REMOVE_CMD="rm -r /home/c-example/utbot_build"
2018
RUN_TEST_CMD="env make -f /home/c-example/tests/lib/floats/floating_point_plain.mk run GTEST_FLAGS=\"--gtest_filter=*.plain_isnan_test_1\" clang=\"/usr/bin/clang-10\" clangxx=\"/usr/bin/clang++-10\" gtest=\"/gtest\""
21-
docker exec $(PORTABLE_CONTAINER) /bin/sh -c "$(REMOVE_CMD) && $(RUN_TEST_CMD)"
19+
docker exec $(PORTABLE_CONTAINER_NAME) /bin/sh -c "$(REMOVE_CMD) && $(RUN_TEST_CMD)"

0 commit comments

Comments
 (0)