AMD64
C++
Git
gbarctester2/test23:.travis.yml@2ddf8d0
dist: bionic
language: cpp
env:
global:
- RUN_TESTS=true
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": "true"
}
]
},
"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\""
]
}
]
}
}