websocket: fix autobahn test to always use latest v(#6780)
parent
af5836202c
commit
68cfbd6d66
|
@ -518,38 +518,38 @@ jobs:
|
|||
../v -autofree -experimental .
|
||||
cd ..
|
||||
|
||||
# websocket_autobahn:
|
||||
# name: Autobahn integrations tests
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
websocket_autobahn:
|
||||
name: Autobahn integrations tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# - name: Run autobahn services
|
||||
# run: docker-compose -f ${{github.workspace}}/vlib/x/websocket/tests/autobahn/docker-compose.yml up -d
|
||||
# - name: Build client test
|
||||
# run: docker exec autobahn_client "v" "/src/tests/autobahn/autobahn_client.v"
|
||||
# - name: Run client test
|
||||
# run: docker exec autobahn_client "/src/tests/autobahn/autobahn_client"
|
||||
# - name: Run server test
|
||||
# run: docker exec autobahn_server "wstest" "-m" "fuzzingclient" "-s" "/config/fuzzingclient.json"
|
||||
# - name: Copy reports
|
||||
# run: docker cp autobahn_server:/reports ${{github.workspace}}/reports
|
||||
# - name: Test success
|
||||
# run: docker exec autobahn_server "python" "/check_results.py"
|
||||
- name: Run autobahn services
|
||||
run: docker-compose -f ${{github.workspace}}/vlib/x/websocket/tests/autobahn/docker-compose.yml up -d
|
||||
- name: Build client test
|
||||
run: docker exec autobahn_client "/src/v" "/src/vlib/x/websocket/tests/autobahn/autobahn_client.v"
|
||||
- name: Run client test
|
||||
run: docker exec autobahn_client "/src/vlib/x/websocket/tests/autobahn/autobahn_client"
|
||||
- name: Run server test
|
||||
run: docker exec autobahn_server "wstest" "-m" "fuzzingclient" "-s" "/config/fuzzingclient.json"
|
||||
- name: Copy reports
|
||||
run: docker cp autobahn_server:/reports ${{github.workspace}}/reports
|
||||
- name: Test success
|
||||
run: docker exec autobahn_server "python" "/check_results.py"
|
||||
|
||||
# - name: Publish all reports
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: full report
|
||||
# path: ${{github.workspace}}/reports
|
||||
# - name: Publish report client
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: client
|
||||
# path: ${{github.workspace}}/reports/clients/index.html
|
||||
# - name: Publish report server
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: server
|
||||
# path: ${{github.workspace}}/reports/servers/index.html
|
||||
- name: Publish all reports
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: full report
|
||||
path: ${{github.workspace}}/reports
|
||||
- name: Publish report client
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: client
|
||||
path: ${{github.workspace}}/reports/clients/index.html
|
||||
- name: Publish report server
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: server
|
||||
path: ${{github.workspace}}/reports/servers/index.html
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue