Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: 2.1
workflows:
build:
jobs:
- build:
context:
- circleci-api
- ngviz

jobs:
build:
machine:
# https://circleci.com/developer/machine/image/ubuntu-2204
image: ubuntu-2004:202010-01 # # recommended linux image - includes Ubuntu 20.04
resource_class: large
environment:
node_version: 18.16.0
steps:
- checkout
# look for existing cache and restore if found
- restore_cache:
keys:
- v1-deps-{{ checksum "package-lock.json" }}
# CircleCI will use the static fallback key v1-deps- to load the most recent valid cache
- v1-deps- */
# install dependencies
- run:
name: Install dependencies
command: |
nvm install $node_version
nvm use $node_version
npm install
npm install github:Displayr/rhtmlLabeledScatter
# install zip - for easier download of snapshots
- run:
name: Install 7zip
command: sudo apt install p7zip-full
# save any changes to the cache
- save_cache:
key: v1-deps-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Run tests
no_output_timeout: 30m
command: |
npm run build
npm run circleCITest
- run:
name: Zip test output
when: always
command: |
cd theSrc/test/snapshots/travis/master
7z a test-results.zip -r .
- store_artifacts:
path: theSrc/test/snapshots/travis/master
- store_test_results:
path: theSrc/test