AMD64
Go: 1.10.x
Git
BR=lib-library2-test-conditions A=1
This is the configuration for all of build #6, including this job
conditions: v1

language: go
go: 1.10.x

install: skip

jobs:
  include:
    # Test libraries
    - &lib-test-stage
      stage: test libraries
      script:
        - COMPONENT_TYPE=lib ./ci/test.sh
      if: branch = otra
      env: BR=lib-library2-test-conditions A=1

    - <<: *lib-test-stage
      env: BR=lib-library2-test-conditions B=1
.travis.yml
language: node_js
node_js:
  - "node"
  - "9"
  - "8"
script: npm test
cache:
  apt: true
  directories:
  - "$HOME/.npm"
Build Config
{
  "go": "1.10.x",
  "jobs": {
    "include": [
      {
        "if": "branch = otra",
        "env": "BR=lib-library2-test-conditions A=1",
        "stage": "test libraries",
        "script": [
          "COMPONENT_TYPE=lib ./ci/test.sh"
        ]
      },
      {
        "if": "branch = otra",
        "env": "BR=lib-library2-test-conditions B=1",
        "stage": "test libraries",
        "script": [
          "COMPONENT_TYPE=lib ./ci/test.sh"
        ]
      }
    ]
  },
  "install": "skip",
  "language": "go",
  "conditions": "v1"
}