Skip to content

Instantly share code, notes, and snippets.

@RoyalHunt
Created October 24, 2017 08:02
Show Gist options
  • Save RoyalHunt/fbcbd271b9bbf8ce11854ba769ecf98d to your computer and use it in GitHub Desktop.
Save RoyalHunt/fbcbd271b9bbf8ce11854ba769ecf98d to your computer and use it in GitHub Desktop.
.gitlab-ci.yml example
image: "node:6.9"
variables:
BUNDLE_CACHE: "node_modules/"
cache:
untracked: false
paths:
- ~/.npm/
- node_modules/
stages:
- test
before_script:
- npm -v
- npm install --silent --no-progress
test:
stage: test
script:
- npm --silent run htmlhint
- npm --silent run eslint
- npm --silent run stylelint
- npm --silent test
- npm --silent run eslint-report || true
- npm --silent run test-report || true
artifacts:
name: report
expire_in: 31d
paths:
- eslint-report.html
- mocha-report.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment