Skip to content

Instantly share code, notes, and snippets.

@OwenMcDonnell
Last active August 7, 2019 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OwenMcDonnell/ff876149dec75a76dc90f407cb03e2ef to your computer and use it in GitHub Desktop.
Save OwenMcDonnell/ff876149dec75a76dc90f407cb03e2ef to your computer and use it in GitHub Desktop.
image: Visual Studio 2015
environment:
matrix:
- JOB_NAME: test
JOB_DESC: "the one that should run every time"
- JOB_NAME: release
JOB_DESC: "the one that should run on the release branch"
- JOB_NAME: nightly
JOB_DESC: "the one that should run on the nightly tag"
- JOB_NAME: extra
JOB_DESC: "the one that should only run by request"
for:
-
branches:
only:
- /^release.*/
matrix:
only:
- JOB_NAME: release
-
branches:
only:
- nightly
matrix:
only:
- JOB_NAME: nightly
-
only_commits:
message: /\[full ci\]/
matrix:
only:
- JOB_NAME: extra
branches:
only:
- master
- /^release.*/
- /^feat.*/
- nightly
build_script:
- ps: Write-Host "Running $env:JOB_NAME job ($env:JOB_DESC)."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment