mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +00:00
[CI] Update circleCI to v2 (#1942)
* initial v2 config t # This is a combination of 10 commits. fix indent errs fix indentations run prepare manually run prepare manually remove indent remove indent remove indent remove indent remove indent Misc fix npm prepare Install gulp use gulp locally use checkout use old job use old job build-<test build-<test change change change change change * add gulp as devdep * local npm commands * use node8 * cache bower components * use npm to run checkstyle * remove circlev1 config * store artifacts * clean up naming fixes #1933
This commit is contained in:
parent
1a10c966e0
commit
cde3994979
40
.circleci/config.yml
Normal file
40
.circleci/config.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
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
|
27
circle.yml
27
circle.yml
@ -1,27 +0,0 @@
|
|||||||
machine:
|
|
||||||
node:
|
|
||||||
version: 8.11.0
|
|
||||||
|
|
||||||
dependencies:
|
|
||||||
pre:
|
|
||||||
- npm install -g npm@latest
|
|
||||||
|
|
||||||
deployment:
|
|
||||||
production:
|
|
||||||
branch: master
|
|
||||||
commands:
|
|
||||||
- npm install canvas nomnoml
|
|
||||||
- ./build-docs.sh
|
|
||||||
openmctweb-staging-deux:
|
|
||||||
branch: mobile
|
|
||||||
heroku:
|
|
||||||
appname: openmctweb-staging-deux
|
|
||||||
test:
|
|
||||||
post:
|
|
||||||
- gulp lint
|
|
||||||
- gulp checkstyle
|
|
||||||
|
|
||||||
general:
|
|
||||||
branches:
|
|
||||||
ignore:
|
|
||||||
- gh-pages
|
|
@ -59,6 +59,8 @@
|
|||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
"test": "karma start --single-run",
|
"test": "karma start --single-run",
|
||||||
"jshint": "jshint platform example",
|
"jshint": "jshint platform example",
|
||||||
|
"lint": "./node_modules/gulp/bin/gulp.js lint",
|
||||||
|
"checkstyle": "./node_modules/gulp/bin/gulp.js checkstyle",
|
||||||
"watch": "karma start",
|
"watch": "karma start",
|
||||||
"jsdoc": "jsdoc -c jsdoc.json -R API.md -r -d dist/docs/api",
|
"jsdoc": "jsdoc -c jsdoc.json -R API.md -r -d dist/docs/api",
|
||||||
"otherdoc": "node docs/gendocs.js --in docs/src --out dist/docs --suppress-toc 'docs/src/index.md|docs/src/process/index.md'",
|
"otherdoc": "node docs/gendocs.js --in docs/src --out dist/docs --suppress-toc 'docs/src/index.md|docs/src/process/index.md'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user