.gitlab-ci.yml 1.5 KB
Newer Older
Mitar's avatar
Mitar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
validate:
  stage: build

  tags:
    - docker

  image: registry.gitlab.com/datadrivendiscovery/images/testing:ubuntu-bionic-python36

  services:
    - docker:dind

  before_script:
    - docker info

  variables:
    DOCKER_DRIVER: overlay2
    DOCKER_HOST: tcp://docker:2375
    GIT_STRATEGY: clone

  script:
    - python3 ./run_validation.py

validate_devel:
  stage: build

  tags:
    - docker

  image: registry.gitlab.com/datadrivendiscovery/images/testing:ubuntu-bionic-python36

  services:
    - docker:dind

  before_script:
    - docker info

  variables:
    DOCKER_DRIVER: overlay2
    DOCKER_HOST: tcp://docker:2375
    GIT_STRATEGY: clone

  script:
    - python3 ./run_validation.py --devel

  allow_failure: true
Mitar's avatar
Mitar committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

trigger_images_rebuild:
  stage: deploy

  tags:
    - docker

  image: registry.gitlab.com/datadrivendiscovery/images/testing:ubuntu-bionic-python36

  script:
    # This triggers a pipeline in https://gitlab.com/datadrivendiscovery/images
    - if [ -n "$TRIGGER_TOKEN" ]; then curl --fail -X POST -F token=$TRIGGER_TOKEN -F ref=master https://gitlab.com/api/v4/projects/5024100/trigger/pipeline; fi

  only:
    - master

trigger_index_rebuild:
  stage: deploy

  tags:
    - docker

  image: registry.gitlab.com/datadrivendiscovery/images/testing:ubuntu-bionic-python36

  script:
    - if [ -n "$INDEX_PRIMITIVES_TOKEN" ]; then curl --fail -X POST -F token=$INDEX_PRIMITIVES_TOKEN -F ref=primitives https://gitlab.datadrivendiscovery.org/api/v4/projects/528/trigger/pipeline; fi

  only:
    - master