# BEGIN COPYRIGHT BLOCK
# (C) 2018 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK

language: java

services:
  - docker

stages:
  - validate
  - test
  - extra

env:
  - BASE_IMAGE="fedora_28"
  - BASE_IMAGE="fedora_29"

script:
  - bash tools/run_container.sh "$BASE_IMAGE"

matrix:
  fast_finish: true
  include:
    - stage: validate
      env: BASE_IMAGE="stylecheck"
    - stage: extra
      env: BASE_IMAGE="pkcs11check"
    - stage: extra
      env: BASE_IMAGE="debian_jdk11"
    - stage: extra
      env: BASE_IMAGE="ubuntu_jdk8"
    - stage: extra
      env: BASE_IMAGE="fedora_29_jdk11"
    - stage: extra
      env: BASE_IMAGE="fedora_rawhide"
  allow_failures:
    - stage: extra
      env: BASE_IMAGE="pkcs11check"
    - stage: extra
      env: BASE_IMAGE="debian_jdk11"
    - stage: extra
      env: BASE_IMAGE="ubuntu_jdk8"
    - stage: extra
      env: BASE_IMAGE="fedora_29_jdk11"
    - stage: extra
      env: BASE_IMAGE="fedora_rawhide"
