default:
  before_script:
    - apk add bash
    - pip install nose

py2.7-core:
  image: python:2.7
  variables:
    HDL_TEST_SET: core
  before_script:
    - pip install nose
  script:
    - ./devscripts/run_tests.sh

py2.7-download:
  image: python:2.7
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  before_script:
    - pip install nose
  script:
    - ./devscripts/run_tests.sh

py3.6-core:
  image: python:3.6-alpine
  variables:
    HDL_TEST_SET: core
  script:
    - ./devscripts/run_tests.sh

py3.6-download:
  image: python:3.6-alpine
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  script:
    - ./devscripts/run_tests.sh

py3.7-core:
  image: python:3.7-alpine
  variables:
    HDL_TEST_SET: core
  script:
    - ./devscripts/run_tests.sh

py3.7-download:
  image: python:3.7-alpine
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  script:
    - ./devscripts/run_tests.sh

py3.8-core:
  image: python:3.8-alpine
  variables:
    HDL_TEST_SET: core
  script:
    - ./devscripts/run_tests.sh

py3.8-download:
  image: python:3.8-alpine
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  script:
    - ./devscripts/run_tests.sh

py3.9-core:
  image: python:3.9-alpine
  variables:
    HDL_TEST_SET: core
  script:
    - ./devscripts/run_tests.sh

py3.9-download:
  image: python:3.9-alpine
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  script:
    - ./devscripts/run_tests.sh

jython-core:
  image: openjdk:11-slim
  variables:
    HDL_TEST_SET: core
  allow_failure: true
  before_script:
    - apt-get update
    - apt-get install -y wget
    - ./devscripts/install_jython.sh
    - export PATH="$HOME/jython/bin:$PATH"
  script:
    - ./devscripts/run_tests.sh

jython-download:
  image: openjdk:11-slim
  variables:
    HDL_TEST_SET: download
  allow_failure: true
  before_script:
    - apt-get update
    - apt-get install -y wget
    - ./devscripts/install_jython.sh
    - export PATH="$HOME/jython/bin:$PATH"
  script:
    - ./devscripts/run_tests.sh
