Valid YAML but my build is not running

Hi!

I’m trying to use stages for my builds and for some reason my build does not start.

The yaml linter says that my file is fine, and actually I’ve used the same anchor for matrix and works there.

Any idea what could happen here? Regards!

---
os: osx
language: generic

env:
  global:
    - CONAN_TOTAL_PAGES: 2

builds: &builds
  - osx_image: xcode7.3
    env: CONAN_APPLE_CLANG_VERSIONS=7.3 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode7.3
    env: CONAN_APPLE_CLANG_VERSIONS=7.3 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode8.3
    env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode8.3
    env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode9.2
    env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode9.2
    env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode9.4
    env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode9.4
    env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode10
    env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}
  - osx_image: xcode10
    env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

jobs:
  include:
    - stage: "OpenSSL/1.0.2"
      <<: *builds
    - stage: "OpenSSL/1.0.2a"
      osx_image: xcode7.3
      env: CONAN_APPLE_CLANG_VERSIONS=7.3 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

install:
  - chmod +x .travis/install.sh
  - ./.travis/install.sh

script:
  - chmod +x .travis/run.sh
  - ./.travis/run.sh

Where is the repository?

https://travis-ci.com/uilianries/conan-openssl

I found a solution. Actually I forgot to use “name”:

---
os: osx
language: generic

env:
  global:
    - CONAN_TOTAL_PAGES: 2

builds: &builds
    name: "XCode 7.3 - Page 1"
    osx_image: xcode7.3
    env: CONAN_APPLE_CLANG_VERSIONS=7.3 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 7.3 - Page 2"
    osx_image: xcode7.3
    env: CONAN_APPLE_CLANG_VERSIONS=7.3 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 8.3 - Page 1"
    osx_image: xcode8.3
    env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 8.3 - Page 2"
    osx_image: xcode8.3
    env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 9.2 - Page 1"
    osx_image: xcode9.2
    env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 9.2 - Page 2"
    osx_image: xcode9.2
    env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 9.4 - Page 1"
    osx_image: xcode9.4
    env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 9.4 - Page 1"
    osx_image: xcode9.4
    env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 10 - Page 1"
    osx_image: xcode10
    env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

    name: "XCode 10 - Page 1"
    osx_image: xcode10
    env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=2 CONAN_REFERENCE=${TRAVIS_BUILD_STAGE_NAME}

jobs:
  include:
    - stage: "OpenSSL/1.0.2s"
      <<: *builds
    - stage: "OpenSSL/1.0.2r"
      <<: *builds

install:
  - chmod +x .ci/install.sh
  - ./.ci/install.sh

script:
  - chmod +x .ci/run.sh
  - ./.ci/run.sh
Imprint