Skip to content

Instantly share code, notes, and snippets.

@SlyDen
Created March 6, 2018 10:34
Show Gist options
  • Save SlyDen/b2c6946efd4cd5c94e74402c5002b1f6 to your computer and use it in GitHub Desktop.
Save SlyDen/b2c6946efd4cd5c94e74402c5002b1f6 to your computer and use it in GitHub Desktop.
gitlab ci yaml file with hidden keys for merging parameters example
.artifacts: &artifacts
artifacts:
paths:
- tests/build/config.log
when: on_failure
expire_in: "1 week"
.cache: &cache
cache:
paths:
- .mocha/node_modules
- mocha/node_modules
- tests/node_modules
.dependencies: &dependencies
<<: *artifacts
<<: *cache
stage: dependencies
only:
- master
- /^mr-cache-.*$/
script:
- cd ${CI_PROJECT_DIR}/tests
- ../waf/waf distclean configure ${DEVICE} ${WITH_TESTS} ${WITHOUT_TESTS} ${OPTIONS} third-party-push
.configure: &configure
<<: *artifacts
<<: *cache
stage: configure
only:
- /^mr-.*$/
except:
- /^mr-cache-.*$/
script:
- cd ${CI_PROJECT_DIR}/tests
- ../waf/waf distclean configure ${DEVICE} ${WITH_TESTS} ${WITHOUT_TESTS} ${OPTIONS}
.arch_linux: &arch_linux
image: vcatechnology/arch-toolchain
Arch Linux Dependencies:
<<: *arch_linux
<<: *dependencies
Arch Linux Configure:
<<: *arch_linux
<<: *configure
.....etc... for 12 different platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment