variables:
  MYSQL_HOST: registry.afi-sa.net__hds__mariadb-docker
  MYSQL_DATABASE: "bokeh_build_${CI_BUILD_REF}"
  MYSQL_ROOT_PASSWORD: root
  BOKEH_HTML_VALIDATOR_URL: "http://sthysel__nuhtml:8888"

test:php81_bokeh:
  image:
    name: registry.afi-sa.net/hds/php-nginx-docker:8.1-dev
    pull_policy: always
  services:
    - sthysel/nuhtml
  script:
    - bash build_bokeh.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 81_bokeh


test:php81_other:
  image:
    name: registry.afi-sa.net/hds/php-nginx-docker:8.1-dev
    pull_policy: always	
  services:
    - registry.afi-sa.net/hds/mariadb-docker:10.11.8
    - sthysel/nuhtml
  script:
    - bash scripts/ci_data_preparation.sh $MYSQL_DATABASE $MYSQL_HOST $MYSQL_ROOT_PASSWORD
    - bash build_other.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 81_other


test:php81_scenario:
  image:
    name: registry.afi-sa.net/hds/php-nginx-docker:8.1-dev
    pull_policy: always
  services:
    - sthysel/nuhtml
  script:
    - bash build_scenario.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 81_scenario
    

test:php83_bokeh:
  image: 
    name: registry.afi-sa.net/hds/php-nginx-docker:alpine-8.3-dev
    pull_policy: always
  services:
    - sthysel/nuhtml
  script:
    - bash build_bokeh.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 83_bokeh


test:php83_other:
  image: 
    name: registry.afi-sa.net/hds/php-nginx-docker:alpine-8.3-dev
    pull_policy: always
  services:
    - registry.afi-sa.net/hds/mariadb-docker:10.11.8
    - sthysel/nuhtml
  script:
    - bash scripts/ci_data_preparation.sh $MYSQL_DATABASE $MYSQL_HOST $MYSQL_ROOT_PASSWORD
    - bash build_other.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 83_other


test:php83_scenario:
  image:
    name: registry.afi-sa.net/hds/php-nginx-docker:alpine-8.3-dev
    pull_policy: always
  services:
    - sthysel/nuhtml
  script:
    - bash build_scenario.sh $MYSQL_DATABASE root $MYSQL_ROOT_PASSWORD $MYSQL_HOST
  except:
    - tags
  tags:
    - 83_scenario