mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 20:08:06 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
|
version: 2
|
||
|
jobs:
|
||
|
build:
|
||
|
docker:
|
||
|
- image: circleci/node:8-browsers
|
||
|
environment:
|
||
|
CHROME_BIN: "/usr/bin/google-chrome"
|
||
|
steps:
|
||
|
- checkout
|
||
|
- run:
|
||
|
name: Update npm
|
||
|
command: 'sudo npm install -g npm@latest'
|
||
|
- restore_cache:
|
||
|
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "bower.json" }}
|
||
|
- run:
|
||
|
name: Installing dependencies (npm install)
|
||
|
command: npm install
|
||
|
- save_cache:
|
||
|
key: dependency-cache-{{ checksum "package.json" }}-{{ checksum "bower.json" }}
|
||
|
paths:
|
||
|
- node_modules
|
||
|
- bower_components
|
||
|
- run:
|
||
|
name: npm run test
|
||
|
command: npm run test
|
||
|
- run:
|
||
|
name: npm run lint
|
||
|
command: npm run lint
|
||
|
- run:
|
||
|
name: npm run checkstyle
|
||
|
command: npm run checkstyle
|
||
|
- store_artifacts:
|
||
|
path: dist
|
||
|
prefix: dist
|
||
|
|
||
|
workflows:
|
||
|
version: 2
|
||
|
test:
|
||
|
jobs:
|
||
|
- build
|