Skip to content

Commit

Permalink
chore: add ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
unix committed Mar 18, 2020
1 parent 00e2fb1 commit 4b1b240
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,53 @@
version: 2
jobs:
docs:
docker:
- image: circleci/node:12.0

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v2-dependencies-{{ checksum "package.json" }}
- v2-dependencies-

- run: yarn

- save_cache:
paths:
- node_modules
key: v2-dependencies-{{ checksum "package.json" }}

- run: yarn run now-build

build:
docker:
- image: circleci/node:12.0

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v2-dependencies-{{ checksum "package.json" }}
- v2-dependencies-

- run: yarn

- save_cache:
paths:
- node_modules
key: v2-dependencies-{{ checksum "package.json" }}

- run: yarn run build
workflows:
version: 2
build_and_test:
jobs:
- docs
- build
22 changes: 22 additions & 0 deletions .travis.yml
@@ -0,0 +1,22 @@
language: node_js

node_js:
- 13.9.0

cache:
directories:
- "node_modules"

notifications:
email:
on_success: never

branches:
only:
- master

install:
- yarn

script:
- yarn run build

0 comments on commit 4b1b240

Please sign in to comment.