Created
October 24, 2017 08:02
-
-
Save RoyalHunt/fbcbd271b9bbf8ce11854ba769ecf98d to your computer and use it in GitHub Desktop.
.gitlab-ci.yml example
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
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