AMD64
Python: 3.6
Git
tonoyansergey-devt/scannertest:.travis.yml@013af54
language: python
python:
- 3.6
jobs:
  include:
    - stage: "first stage"
      script: python test_one.py
    - stage: "the stage runs if draft is true"
      script: python test_one.py
      if: draft = true
    - stage: "the stage doesn't run if draft is true"
      script: python test_one.py
      if: draft = false
Build Config
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "python": [
    "3.6"
  ],
  "jobs": {
    "include": [
      {
        "stage": "first stage",
        "script": [
          "python test_one.py"
        ]
      },
      {
        "stage": "the stage runs if draft is true",
        "script": [
          "python test_one.py"
        ],
        "if": "draft = true"
      },
      {
        "stage": "the stage doesn't run if draft is true",
        "script": [
          "python test_one.py"
        ],
        "if": "draft = false"
      }
    ]
  }
}