Skip to content

Instantly share code, notes, and snippets.

@ykyuen
Created December 18, 2017 02:36
Show Gist options
  • Save ykyuen/c5da95a2a95eebc0238e9b30d8880e4c to your computer and use it in GitHub Desktop.
Save ykyuen/c5da95a2a95eebc0238e9b30d8880e4c to your computer and use it in GitHub Desktop.
a-simple-gitlab-ci-example-01
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