Created
May 21, 2017 08:44
-
-
Save Y2017/365d7d85fa0cb8803a6393df1cde3e8e to your computer and use it in GitHub Desktop.
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
// CACHE | |
//cached between jobs | |
// put it inside job or globally | |
// Locally defined cache overrides globally defined options | |
// cache per job avec key: "$CI_JOB_NAME" | |
// per-branch caching : key: "$CI_COMMIT_REF_NAME" | |
// per-job and per-branch caching: key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME" | |
// per-branch and per-stage caching : key: "$CI_JOB_STAGE/$CI_COMMIT_REF_NAME" | |
ou par build : | |
cache: | |
key: "$CI_BUILD_REF_NAME" | |
untracked: true | |
paths: | |
- node_modules/ | |
- dist/ | |
before_script: | |
- npm install | |
- npm i --save "....orilab_dicom" | |
be careful when using special characters: :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @, `. | |
script: | |
- 'npm run dist' | |
with package.json : | |
npm run dist : ng build --progress=false | |
when : | |
- Define when to run job. Can be on_success, on_failure, always or manual | |
ou | |
STAGE | |
// build, test and deploy are allowed to be used as job's stage by default. | |
// If a job doesn't specify a stage, the job is assigned the test stage | |
// Jobs of the same stage are executed in parallel | |
stages: | |
- inject_orilab_dicom | |
- build_dist | |
- dev | |
(- test) | |
DOCKER | |
image: ruby:2.1 | |
services: | |
- postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment