version: 2
jobs:
  mariadb-103:
    # workaround https://discuss.circleci.com/t/post-clone-working-directory/15333/4
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.3.8
      - TAGS: 10.3,10,latest
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

  mariadb-102:
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.2.16
      - TAGS: 10.2
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

  mariadb-101:
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.1.35
      - TAGS: 10.1
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

workflows:
  version: 2
  build_and_test:
    jobs:
      - mariadb-103:
          filters:
            tags:
              only: /.*/
      - mariadb-102:
          filters:
            tags:
              only: /.*/
      - mariadb-101:
          filters:
            tags:
              only: /.*/

version: 2
jobs:
  mariadb-103:
    # workaround https://discuss.circleci.com/t/post-clone-working-directory/15333/4
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.3.9
      - TAGS: 10.3,10,latest
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

  mariadb-102:
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.2.17
      - TAGS: 10.2
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

  mariadb-101:
    working_directory: ~/repo/10
    machine: true
    environment:
      - MARIADB_VER: 10.1.35
      - TAGS: 10.1
    steps:
      - checkout:
          path: ~/repo
      - run: make
      - run: make test
      - run: . ../release.sh

workflows:
  version: 2
  build_and_test:
    jobs:
      - mariadb-103:
          filters:
            tags:
              only: /.*/
      - mariadb-102:
          filters:
            tags:
              only: /.*/
      - mariadb-101:
          filters:
            tags:
              only: /.*/

Update MariaDB to 10.2.17, 10.3.9
Update MariaDB to 10.2.17, 10.3.9
