centos_build:
  stage: build
  tags:
    - centos
  artifacts:
    paths:
      - ./build/src/pdata
  script:
    - ./build.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS pdata full $CI_COMMIT_REF_NAME

centos_run:
  stage: test
  tags:
    - centos
  dependencies:
    - centos_build
  script:
    - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 1 pdata full $CI_COMMIT_REF_NAME


mac_build:
  stage: build
  tags:
    - mac
  artifacts:
    paths:
      - ./build/src/pdata
  script:
    - ./build.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS pdata full  $CI_COMMIT_REF_NAME

mac_run:
  stage: test
  tags:
    - mac
  dependencies:
    - mac_build
  script:
    - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 1 pdata full $CI_COMMIT_REF_NAME

ubuntu_build:
  stage: build
  tags:
    - ubuntu
  artifacts:
    paths:
      - ./build/src/pdata
  script:
    - ./build.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS pdata full $CI_COMMIT_REF_NAME

ubuntu_run:
  stage: test
  tags:
    - ubuntu
  dependencies:
    - ubuntu_build
  script:
    - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 1 pdata full $CI_COMMIT_REF_NAME