AMD64
C++
Git
gbarctester2/test23:.travis.yml@8f4dcec
dist: bionic
language: cpp
env:
  global:
  - RUN_TESTS=false

stages:
- name: testing
  if: env(RUN_TESTS) =~ /^(?i)(true|1).*/
- name: no_testing


jobs:
  include:
    - stage: testing
      script: echo "RUNNING TESTS"
    - stage: no_testing
      script: echo "some stage"
Build Config
{
  "language": "cpp",
  "os": [
    "linux"
  ],
  "dist": "bionic",
  "env": {
    "global": [
      {
        "RUN_TESTS": "false"
      }
    ]
  },
  "stages": [
    {
      "name": "testing",
      "if": "env(RUN_TESTS) =~ /^(?i)(true|1).*/"
    },
    {
      "name": "no_testing"
    }
  ],
  "jobs": {
    "include": [
      {
        "stage": "testing",
        "script": [
          "echo \"RUNNING TESTS\""
        ]
      },
      {
        "stage": "no_testing",
        "script": [
          "echo \"some stage\""
        ]
      }
    ]
  }
}