Created
December 18, 2017 02:36
-
-
Save ykyuen/c5da95a2a95eebc0238e9b30d8880e4c to your computer and use it in GitHub Desktop.
a-simple-gitlab-ci-example-01
This file contains hidden or 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
stages: | |
- lint-css | |
- lint-js | |
- unit-test | |
image: node:6.11.2 | |
lint css: | |
stage: lint-css | |
before_script: | |
- npm install | |
cache: | |
untracked: true | |
only: | |
- master | |
script: | |
- ./node_modules/gulp/bin/gulp.js lint-css | |
lint js: | |
stage: lint-js | |
cache: | |
untracked: true | |
policy: pull | |
only: | |
- master | |
script: | |
- ./node_modules/gulp/bin/gulp.js lint-js | |
run unit test: | |
stage: unit-test | |
cache: | |
untracked: true | |
policy: pull | |
only: | |
- master | |
script: | |
- ./node_modules/gulp/bin/gulp.js test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment