test:
  pre:
    # install dependencies
    - pip install git+https://github.com/demisto/demisto-py.git@test-content
    - pip install pykwalify

    # validate yaml
    - chmod +x ./Tests/yamlvalidator
    - ./Tests/yamlvalidator

    # build content descriptor
    - ./setContentDescriptor.sh $CIRCLE_BUILD_NUM 6ac3dc12f4b0079b8520e889a4ce9bdc452ff521 3.1.0

    # create content bundle
    - python content_creator.py $CIRCLE_ARTIFACTS
  override:
    - chmod +x ./Tests/scripts/*

    # ensure file name
    - ./Tests/scripts/validate_files_structure.sh

    # get installer from server
    - ./Tests/scripts/server_get_artifact.sh

    # run demisto instance
    - ./Tests/scripts/create_instance.sh

    # download conf file
    - ./Tests/scripts/download_demisto_conf.sh

    # run installer
    - ./Tests/scripts/run_installer_on_instance.sh

    # wait until server is ready
    - ./Tests/scripts/wait_until_server_ready.sh

    # run tests
    - ./Tests/scripts/run_tests.sh

    # terminate instance
    - ./Tests/scripts/destroy_instances.sh

test:
  pre:
    # install dependencies
    - pip install git+https://github.com/demisto/demisto-py.git@test-content
    - pip install pykwalify

    # validate yaml
    - chmod +x ./Tests/yamlvalidator
    - ./Tests/yamlvalidator

    # build content descriptor
    - ./setContentDescriptor.sh $CIRCLE_BUILD_NUM 6ac3dc12f4b0079b8520e889a4ce9bdc452ff521 18.1.3

    # create content bundle
    - python content_creator.py $CIRCLE_ARTIFACTS
  override:
    - chmod +x ./Tests/scripts/*

    # ensure file name
    - ./Tests/scripts/validate_files_structure.sh

    # get installer from server
    - ./Tests/scripts/server_get_artifact.sh

    # run demisto instance
    - ./Tests/scripts/create_instance.sh

    # download conf file
    - ./Tests/scripts/download_demisto_conf.sh

    # run installer
    - ./Tests/scripts/run_installer_on_instance.sh

    # wait until server is ready
    - ./Tests/scripts/wait_until_server_ready.sh

    # run tests
    - ./Tests/scripts/run_tests.sh

    # terminate instance
    - ./Tests/scripts/destroy_instances.sh

Fix version in content descriptor
Fix version in content descriptor
