Skip to content

Instantly share code, notes, and snippets.

@ykyuen
Created December 18, 2017 02:38
Show Gist options
  • Save ykyuen/c7ac2c14f573048c2869885f5103d90d to your computer and use it in GitHub Desktop.
Save ykyuen/c7ac2c14f573048c2869885f5103d90d to your computer and use it in GitHub Desktop.
a-simple-gitlab-ci-example-02
lint css:
stage: lint-css # <- Should map to the value defined in the 'stages'
before_script: # <- Pre-script
- npm install
cache: # <- Enable caching on files so they are available in the next stage
untracked: true # <- Cache the git untracked files (ex. node_modules)
only:
- master # <- This stage run only on master branch update
script: # <- The actually script of this stage
- ./node_modules/gulp/bin/gulp.js lint-css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment