Run Fastlane with remote IO drone

Asked

Viewed 19 times

0

I have the following pipeline to run Fastlane tests on an Ios project:

kind: pipeline
name: default

steps:
- name: test
  image: appleboy/drone-ssh
  settings:
    host: host.localhost
    username: fulano
    password: senha
    port: 22
    script:
    - cd projetos/ios/
    - git pull https://gitlab-ci-token:[email protected]
    - fastlane test

The first two commands work, but when I run Fastlane test it says it does not know the command, Fastlane runs on mac normally, is set in the path.

Does anyone know what it can be?

1 answer

0


It was necessary to inform the PATH that was on the local mac at the time of executing the commands. From an export PATH=.... thus staying so:

kind: pipeline
name: default

steps:
- name: test
  image: appleboy/drone-ssh
  settings:
    host: host.localhost
    username: fulano
    password: senha
    port: 22
    script:
    - cd projetos/ios/
    - git pull https://gitlab-ci-token:[email protected]
    - export PATH=COLOQUE_AQUI_SEU_PATH_LOCAL_DO_MAC
    - fastlane test
  • 1

    if possible, complement the response with the full solution or example and not just part of the code

Browser other questions tagged

You are not signed in. Login or sign up in order to post.