Skip to content
Snippets Groups Projects
.gitlab-ci.yml 944 B
Newer Older
stages:
  - test
Christoph Alt's avatar
Christoph Alt committed
  - deploy

test:
   stage: test
   tags:
      - docker
   image: python:3.8
   script:
      - pip install --user pytest
Christoph Alt's avatar
Christoph Alt committed
      - pip install --user .
      - python -m pytest

Christoph Alt's avatar
Christoph Alt committed
deploy_uniformgrid_gpu:
  stage: deploy
  tags:
    - docker
  image: python:3.8
  script:
    - pip install --user .
    - python3 dashboards/deploy.py
  when: manual

trigger_cb_pipeline:
  stage: trigger
Christoph Alt's avatar
Christoph Alt committed
  image: curlimages/curl
  tags:
    - docker
    - echo $CI_PROJECT_PATH_SLUG
    - echo $CI_PROJECT_PATH
    - echo $CI_PROJECT_DEFAULT_BRANCH
    - echo $CI_COMMIT_REF_NAME
Christoph Alt's avatar
Christoph Alt committed
    - curl 
      --fail 
      --request POST 
      --form token=$CB_TRIGGER_TOKEN 
      --form ref=master 
      --form "variables[WALBERLA_GITLAB_INSTANCE]=https://$CI_SERVER_HOST" 
Christoph Alt's avatar
Christoph Alt committed
      --form "variables[WALBERLA_PROJECT_ID]=walberla/walberla" 
      --form "variables[WALBERLA_BRANCH]=master"
      "$CB_TRIGGER_API_URL"
  when: manual