Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/circleci 2.0 #3

Open
wants to merge 2 commits into
base: core1.0.0
Choose a base branch
from
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
91 changes: 91 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10.8
environment:
TZ: /usr/share/zoneinfo/Asia/Tokyo
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- 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 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

workflows:
version: 2
workflow:
jobs:
- build:
filters:
branches:
ignore: gh-pages
- test:
requires:
- build
filters:
branches:
ignore: gh-pages
- npm_release:
requires:
- build
- test
filters:
branches:
ignore: gh-pages
6 changes: 0 additions & 6 deletions circle.yml

This file was deleted.