Skip to content

Instantly share code, notes, and snippets.

@gpollo
Created January 18, 2019 21:57
Show Gist options
  • Save gpollo/50ab7d252ec4700a94e871a17de9c7b1 to your computer and use it in GitHub Desktop.
Save gpollo/50ab7d252ec4700a94e871a17de9c7b1 to your computer and use it in GitHub Desktop.
image: trion/ng-cli-karma
stages:
- lint
- build
- test
cache:
paths:
- client/node_modules
- server/node_modules
lint:
stage: lint
script:
- cd client && npm run lint
- cd ..
- cd server && npm run lint
build:
stage: build
script:
- cd client && npm install && ng build
- cd ..
- cd server && npm install && npm build
test:
stage: test
script:
- cd client && ng test --watch=false --code-coverage --browsers ChromeHeadlessNoSandbox
- cd ..
- cd server && npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment