Files
openlayers/.circleci/config.yml
Tim Schaub f10717b1fb Use a new cache key in hopes of fixing test failures
The next step in debugging our periodic rendering test failures is to use a new cache key.  This change also removes the less specific key, so we will no longer get partial cache restores.  If we don't see test failures after this change, we may try adding the v2-dependencies- as a key.
2020-04-14 15:32:38 -06:00

55 lines
1.1 KiB
YAML

version: 2
jobs:
build:
docker:
- image: circleci/node:current-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v2-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: npm install
- save_cache:
paths:
- node_modules
key: v2-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Run Tests
command: npm test
- store_artifacts:
path: /home/circleci/.npm/_logs
- store_artifacts:
path: coverage/
destination: coverage
- store_artifacts:
path: rendering/cases/
destination: rendering
- run:
name: Build Examples
command: npm run build-examples
- store_artifacts:
path: build/examples
destination: examples
- run:
name: Build API Docs
command: npm run apidoc
- store_artifacts:
path: build/apidoc
destination: apidoc