Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2
jobs:
build:
working_directory: ~/workspace
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run:
name: Configure Git
command: |
git config --global user.name 'CircleCI'
git config --global user.email 's+circleci@sugarshin.net'
- restore_cache:
name: Restoring Cache - dependencies
keys:
- v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run:
name: System information
command: |
echo "Node.js $(node -v)"
echo "npm $(npm -v)"
echo "Yarn v$(yarn --version)"
- run:
name: Install dependencies
command: yarn
- run:
name: Tests
command: |
npm run lint
npm run type
npm run test:coverage:report
- save_cache:
paths:
- ~/workspace/node_modules
- ~/.cache/yarn/
key: v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
npm run build:demo
npm run deploy
fi
31 changes: 0 additions & 31 deletions circle.yml

This file was deleted.