Skip to content

run test in woolppecker ci#130

Draft
ScharfViktor wants to merge 6 commits intomainfrom
android-ci
Draft

run test in woolppecker ci#130
ScharfViktor wants to merge 6 commits intomainfrom
android-ci

Conversation

@ScharfViktor
Copy link
Copy Markdown
Contributor

@ScharfViktor ScharfViktor commented Apr 24, 2026

related opencloud-eu/qa#82

run kaspresso tests in CI

@individual-it
Copy link
Copy Markdown
Contributor

individual-it commented May 6, 2026

Here is how it can work:

  1. on a dedicate server start the android emulator using docker
    1. use the code from https://github.com/HQarroum/docker-android
    2. set API_LEVEL=36 and IMG_TYPE=default in docker-compose.yml file
    3. change the ports to listen to all IPs: 5555:5555
    4. add - "cloud.opencloud.test:127.0.0.1 or whatever domain you are using to the extra_hosts
  2. create a root CA and a certificate for the opencloud server, here some example certificates that work for cloud.opencloud.test keycloak.opencloud.test: test-certificates.zip
  3. in the emulator manually import the root CA
  4. start the server with keycloak, traefic and opencloud
    1. make traefik use a custom port for HTTPS
    2. make traefik use the certificates from point 2
    3. e.g. when using https://github.com/opencloud-eu/opencloud-compose set:
      • TRAEFIK_SERVICES_TLS_CONFIG="tls=true"
      • TRAEFIK_PORT_HTTP=4080
      • TRAEFIK_PORT_HTTPS=4443
      • create a certs.yml with
        tls:
          certificates:
            - certFile: /certs/server.crt
              keyFile: /certs/server.key
              stores:
                - default
        
  5. start adbserver-desktop.jar
  6. connect to the dedicated server via adb connect <ip>.48:5555
  7. allow android to access port 4443 with adb reverse tcp:4443 tcp:4443
  8. run the tests
  9. copy android_avd folder of the dedicated server to a safe place. That folder contains all android data, including the certificate etc.

Next steps:

@guruz guruz requested a review from individual-it May 6, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants