1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

websocket: fix autobahn test to always use latest v(#6780)

This commit is contained in:
Tomas Hellström
2020-11-08 17:46:06 +01:00
committed by GitHub
parent af5836202c
commit 68cfbd6d66
3 changed files with 44 additions and 43 deletions

View File

@ -11,8 +11,8 @@ services:
container_name: autobahn_client
build:
#vlib/x/websocket/tests/autobahn/ws_test/Dockerfile
dockerfile: tests/autobahn/ws_test/Dockerfile
context: ../../
dockerfile: vlib/x/websocket/tests/autobahn/ws_test/Dockerfile
context: ../../../../../
# volumes:
# - ../../:/src
# redis:

View File

@ -1,11 +1,12 @@
FROM thevlang/vlang:buster-dev
FROM thevlang/vlang:buster-build
# ARG WORKSPACE_ROOT
# WORKDIR ${WORKSPACE_ROOT}
COPY ./ /src/
# COPY tests/autobahn/ws_test/run.sh /run.sh
# RUN chmod +x /run.sh
RUN v /src/tests/autobahn/autobahn_server.v
RUN chmod +x /src/tests/autobahn/autobahn_server
ENTRYPOINT [ "/src/tests/autobahn/autobahn_server" ]
WORKDIR /src
RUN make CC=clang
RUN /src/v /src/vlib/x/websocket/tests/autobahn/autobahn_server.v
RUN chmod +x /src/vlib/x/websocket/tests/autobahn/autobahn_server
ENTRYPOINT [ "/src/vlib/x/websocket/tests/autobahn/autobahn_server" ]