Run multiple stages on multiple os

I have set up a pipeline that contains the stages build test and optional deploy
Now I would like to run the build and test stages in parallell on linux, osx and windows. However when I add

os:
  - osx
  - windwos
  - linux

to my .travis.yml I only get the test stage to run in parallel for each os. Can anybody help me to also get the build stage run on all os? Link to the build

My used .travis.yml:


language: node_js

sudo: false
env:

  • CODE_TESTS_PATH=$TRAVIS_BUILD_DIR/out/test CODE_TESTS_WORKSPACE=$TRAVIS_BUILD_DIR/src/test/testfiles

stages:

  • build
  • test
  • name: deploy
    if: tag =~ /^v\d+.\d+.\d+$/ AND repo = HaaLeo/vscode-timing

node_js:

  • “node”

before_install:

  • if [ $TRAVIS_OS_NAME == “linux” ]; then
    export CXX=“g+±4.9” CC=“gcc-4.9” DISPLAY=:99.0;
    sh -e /etc/init.d/xvfb start;
    sleep 3;
    fi

install:

  • npm install
  • npm run vscode:prepublish

os:

  • linux
  • osx

jobs:
include:
- stage: build
script:
- npm run compile
- npm run tslint
- stage: test
script:
- npm run test
- stage: deploy
before_deploy:
- vsce publish -p {VSC_PUBLISH_TOKEN} - vsce package - export RELEASE_PKG_FILE=(ls *.vsix)
script: skip
deploy:
provider: releases
file_glob: true
file: "{RELEASE_PKG_FILE}" api_key: {Travis_CD}
skip_cleanup: true
on:
tags: true

after_success:

Thanks in advance

you need matrix expansion. Please refer to the doc.