diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml deleted file mode 100644 index b5e026c45..000000000 --- a/.github/workflows/debug.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: gradido debug actions with act CI - -jobs: - ############################################################################## - # JOB: DOCKER BUILD AND TEST LOGIN SERVER #################################### - ############################################################################## - test_login_server_debug: - name: Docker Build Test - Login Server - runs-on: ubuntu-latest - #needs: [nothing] - services: - mariadb: - image: gradido/mariadb:test - env: - MARIADB_ALLOW_EMPTY_PASSWORD: 1 - MARIADB_USER: root - ports: - - 3306:3306 - volumes: - - db_vol:/var/lib/mysql - steps: - ########################################################################## - # CHECKOUT CODE ########################################################## - ########################################################################## - - name: Checkout code - uses: actions/checkout@v2 - with: - submodules: recursive - ########################################################################## - # BUILD LOGIN SERVER DOCKER IMAGE ######################################## - ########################################################################## - - name: login server | Build `test` image - run: | - docker build --target test -t "gradido/login_server:test" -f ./login_server/Dockerfile login_server/ - docker save "gradido/login_server:test" > /tmp/login_server.tar - ########################################################################## - # UNIT TESTS BACKEND LOGIN-SERVER ####################################### - ########################################################################## - - name: Login-Server | Unit tests - run: | - docker run --network container:$(docker container ls | grep mariadb | awk '{ print $1 }') -v ~/coverage:/code/build_cov/coverage -v $(pwd)/configs/login_server:/etc/grd_login gradido/login_server:test - mkdir ~/coverage - cp -r ~/coverage ./coverage - ########################################################################## - # COVERAGE CHECK BACKEND LOGIN-SERVER #################################### - ########################################################################## - - name: backend | Coverage check - uses: webcraftmedia/coverage-check-action@master - with: - report_name: Coverage Backend - type: lcov - result_path: ./coverage/coverage.info - min_coverage: 8 - token: ${{ github.token }} - - ############################################################################## - # JOB: DOCKER BUILD AND TEST COMMUNITY SERVER ################################ - ############################################################################## - test_community_server_debug: - name: Docker Build Test - Community Server - runs-on: ubuntu-latest - #needs: [nothing] - services: - mariadb: - image: gradido/mariadb:test - env: - MARIADB_ALLOW_EMPTY_PASSWORD: 1 - MARIADB_USER: root - steps: - #- name: Start Network - #run: docker network create test-network - #- name: Connect Mariadb to network - # run: docker network connect test-network $(docker container ls | grep mariadb | awk '{ print $1 }') - #- name: Start Login-Server - # run: docker run --network test-network --name=login-server -d gradido/login_server:default - - name: get login-server container id - run: echo "::set-output name=LOGIN_SERVER_ID::$(docker container ls | grep login_server | awk '{ print $1 }')" - id: login_server_container_id - - name: show running container - run: docker container ls - - name: print login server container id - run: echo ${{ steps.login_server_container_id.outputs.LOGIN_SERVER_ID }} - # - name: Get MySQL service ID - # id: mariadb-service -# run: echo "::set-output name=container-id::$(docker ps | grep -i mariadb | awk '{print $1}')" - #- name: Create docker network - # run: docker network create gradido-network - - name: Debug service - run: echo "$(docker ps)" - #- name: Get Github network gateway address - #id: github-network - #run: echo "::set-output name=gateway-address::$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' ${{ steps.mariadb-service.outputs.container-id }})" - ########################################################################## - # CHECKOUT CODE ########################################################## - ########################################################################## - - name: Checkout code - uses: actions/checkout@v2 - ########################################################################## - # BUILD COMMUNITY SERVER DOCKER IMAGE #################################### - ########################################################################## - - name: community server | Build `test` image - run: | - docker build -t "gradido/community_server:test" -f ./community_server/Dockerfile ./ - docker save "gradido/community_server:test" > /tmp/community_server.tar - - ########################################################################## - # UNIT TESTS BACKEND COMMUNITY-SERVER ####################################### - ########################################################################## - - name: check login-server - run: docker logs ${{ steps.login_server_container_id.outputs.LOGIN_SERVER_ID }} - - name: community server | Unit tests - run: | - docker run --network test-network -v /home/einhornimmond/code/coverage:/var/www/cakephp/webroot/coverage gradido/community_server:test - cp -r /home/einhornimmond/code/coverage ./coverage - - ########################################################################## - # COVERAGE CHECK BACKEND COMMUNITY-SERVER #################################### - ########################################################################## - - name: backend | Coverage check - uses: webcraftmedia/coverage-check-action@master - with: - report_name: Coverage Backend - type: lcov - result_path: /home/einhornimmond/code/coverage/lcov.info - min_coverage: 8 - token: ${{ github.token }} diff --git a/login_server/CMakeLists.txt b/login_server/CMakeLists.txt index 4e86d0477..40954b5a7 100644 --- a/login_server/CMakeLists.txt +++ b/login_server/CMakeLists.txt @@ -333,7 +333,7 @@ endif() project(Gradido_LoginServer_Test C CXX) #_TEST_BUILD #find_package(GTest CONFIG REQUIRED) -add_subdirectory("dependencies/grpc/third_party/googletest") +#add_subdirectory("dependencies/protobuf/third_party/googletest") add_executable(Gradido_LoginServer_Test ${LOCAL_SRCS} ${LOCAL_TEST_SRC}) target_compile_definitions(Gradido_LoginServer_Test PUBLIC "_TEST_BUILD") diff --git a/login_server/scripts/prepare_build.sh b/login_server/scripts/prepare_build.sh index 8706e4139..fe9c70e46 100755 --- a/login_server/scripts/prepare_build.sh +++ b/login_server/scripts/prepare_build.sh @@ -11,5 +11,10 @@ cd build cmake -DWITH_SSL=OFF .. cd ../../ - - +if [! -d "./build" ] ; then + mkdir build +fi +cd build +cmake -DCMAKE_BUILD_TYPE=Debug .. +make -j$(nproc) protoc PageCompiler +cmake ..