File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ jobs:
134
134
build-portable-container :
135
135
needs : build-utbot-and-generate-test
136
136
runs-on : ubuntu-latest
137
+ env :
138
+ DOCKER_IMAGE_TAG : docker-image
139
+ PORTABLE_CONTAINER_NAME : Portable
137
140
steps :
138
141
- name : Checkout repository
139
142
uses : actions/checkout@v2
@@ -145,7 +148,7 @@ jobs:
145
148
146
149
- name : Build Portable docker image
147
150
run : |
148
- docker build . --file docker/Dockerfile_portable
151
+ docker build --tag $DOCKER_IMAGE_TAG . --file docker/Dockerfile_portable
149
152
150
153
- name : Download generated test
151
154
uses : actions/download-artifact@v3
Original file line number Diff line number Diff line change 7
7
CURRENT_FOLDER=" $( cd $( dirname ${BASH_SOURCE[0]} ) && pwd ) "
8
8
PROJECT_DIR=$CURRENT_FOLDER /../..
9
9
10
- PORTABLE_CONTAINER=" Portable"
11
-
12
10
# 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 )
14
12
15
13
# 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
17
15
18
16
# Jump to container and check portability
19
17
REMOVE_CMD=" rm -r /home/c-example/utbot_build"
20
18
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) "
You can’t perform that action at this time.
0 commit comments