UNPKG

nmos-ledger

Version:

NMOS discovery and registration APIs

42 lines (40 loc) 1.44 kB
version: 2 jobs: build: working_directory: ~/Streampunk/ledger parallelism: 1 shell: /bin/bash --login environment: CIRCLE_ARTIFACTS: /tmp/circleci-artifacts CIRCLE_TEST_REPORTS: /tmp/circleci-test-results docker: - image: circleci/node:8 command: /sbin/init steps: - checkout - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS - restore_cache: keys: # This branch if available - v1-dep-{{ .Branch }}- # Default branch if not - v1-dep-master- # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly - v1-dep- - run: npm install tap-xunit - run: npm install - save_cache: key: v1-dep-{{ .Branch }}-{{ epoch }} paths: - ./node_modules - run: echo 'export PATH="~/Streampunk/ledger/node_modules/.bin:$PATH"' >> $BASH_ENV # - run: mkdir -p $CIRCLE_TEST_REPORTS/eslint - run: mkdir -p $CIRCLE_TEST_REPORTS/xunit # - run: eslint **/*.js -f junit -o /tmp/circleci-test-results/eslint/eslint.xml - run: set -eo pipefail && npm test | tap-xunit > /tmp/circleci-test-results/xunit/results.xml - store_test_results: path: /tmp/circleci-test-results - store_artifacts: path: /tmp/circleci-artifacts - store_artifacts: path: /tmp/circleci-test-results