before_script:
  - "source ~gitlab-runner/cicd_support/cicd_support.shinc" 
  - "git submodule sync --recursive"
  - "git submodule update --recursive --init"

after_script:
  - "source ~gitlab-runner/cicd_support/cicd_support.shinc" 
  - "cicd_cleanup"

xform-ls:
  tags:
    - psz
    - integration
  script:
    - "# gather info for debugging later, probably not necessary "
    - "pwd"
    - "hostname"
    - "whoami"
    - "env|grep CICD"
    - ""
    - "cd $CICD_TO_TEST_DIR"
    - "source set_env_vars"
    - "sudo ./get-peasoup-packages.sh all"
    - "./build-all.sh --debug"
    - "./postgres_setup.sh"
    - "cd /tmp"
    - "rm -rf ped_ls; $PSZ /bin/ls ./xxx -c rida=on -s meds_static=off --tempdir ped_ls || true"
    - "if [[ ! -x ./xxx ]]; then cat ped_ls/logs/*; fi"
    - "rm -rf ped_ls"
    - "./xxx"