cornerstone-wado-image-loader
Version:
Cornerstone Image Loader for DICOM WADO-URI and WADO-RS
93 lines (85 loc) • 2.33 kB
YAML
# Use the latest 2.1 version of CircleCI pipeline processing engine, see https://circleci.com/docs/2.0/configuration-reference/
version: 2.1
defaults:
working_directory: ~/repo
# https://circleci.com/docs/2.0/circleci-images/#language-image-variants
docker:
- image: circleci/node:14.17.3-browsers
environment:
TERM: xterm # Enable colors in term
CHROME_BIN: "/usr/bin/google-chrome"
jobs:
CHECKOUT:
<<:
steps:
- checkout
- restore_cache:
name: Restore Package Cache
keys:
- packages-v1-{{ .Branch }}-{{ checksum "package.json" }}
- packages-v1-{{ .Branch }}-
- packages-v1-
- run: npm ci
- save_cache:
name: Save Package Cache
paths:
- ~/repo/node_modules
key: packages-v1-{{ .Branch }}-{{ checksum "package.json" }}
- persist_to_workspace:
root: ~/repo
paths: .
BUILD_AND_TEST:
<<:
steps:
- attach_workspace:
at: ~/repo
- run: npm run build && npm run test:ci
# https://circleci.com/docs/2.0/collect-test-data/#karma
# - store_test_results:
# path: reports/junit
# - store_artifacts:
# path: reports/junit
- persist_to_workspace:
root: ~/repo
paths: .
NPM_PUBLISH:
<<:
steps:
- attach_workspace:
at: ~/repo
- run:
name: Avoid hosts unknown for github
command:
mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking
no\n" > ~/.ssh/config
- run:
name: Publish using Semantic Release
command: npx semantic-release
workflows:
version: 2
# PULL REQUEST
PULL_REQUEST:
jobs:
- CHECKOUT:
filters:
branches:
ignore:
- master
- feature/*
- hotfix/*
- BUILD_AND_TEST:
requires:
- CHECKOUT
# MERGE TO MASTER
TEST_AND_RELEASE:
jobs:
- CHECKOUT:
filters:
branches:
only: master
- BUILD_AND_TEST:
requires:
- CHECKOUT
- NPM_PUBLISH:
requires:
- BUILD_AND_TEST