Created
March 6, 2018 10:34
-
-
Save SlyDen/b2c6946efd4cd5c94e74402c5002b1f6 to your computer and use it in GitHub Desktop.
gitlab ci yaml file with hidden keys for merging parameters example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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