Skip to content
Open
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
90 changes: 90 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10.8
environment:
TZ: /usr/share/zoneinfo/UTC
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: sudo apt update && sudo apt install python-pip python-dev
- run: pip install awscli --upgrade --user
- run: echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
- run: yarn --version
- run: yarn install --ignore-scripts --no-progress
# - run: npm run lint
- run: npm run build
- save-cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ~/.local
- ~/.npm/_cacache
- ~/.cache/yarn
- node_modules/
- yarn.lock
- save-cache:
key: artifact-cache-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ref/
- register/
- src/index.ts
- src/metaInfo.ts
test:
docker:
- image: circleci/node:10.8
environment:
TZ: /usr/share/zoneinfo/UTC
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- restore_cache:
key: artifact-cache-{{ .Environment.CIRCLE_SHA1 }}
- run: sudo apt update && sudo apt install python-pip python-dev
- run: pip install awscli --upgrade --user
- run: echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
- run: npm run test

npm_release:
docker:
- image: circleci/node:10.8
environment:
TZ: /usr/share/zoneinfo/UTC
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- restore_cache:
key: artifact-cache-{{ .Environment.CIRCLE_SHA1 }}
- run: sudo apt update && sudo apt install python-pip python-dev
- run: pip install awscli --upgrade --user
- run: echo 'export PATH=/home/circleci/.local/bin:$PATH' >> $BASH_ENV
- run: npm run semantic-release || true

workflows:
version: 2
workflow:
jobs:
- build:
filters:
branches:
only: /.*/
- test:
requires:
- build
filters:
branches:
only: /.*/
- npm_release:
requires:
- build
- test
filters:
branches:
only: master
22 changes: 0 additions & 22 deletions circle.yml

This file was deleted.