Skip to content

Commit

Permalink
Set up proper monorepo (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-piotr authored Apr 28, 2020
1 parent 1d2ab4c commit 80e26f9
Show file tree
Hide file tree
Showing 8 changed files with 602 additions and 2,508 deletions.
95 changes: 20 additions & 75 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,97 +1,42 @@
version: 2
jobs:
restless:
working_directory: ~/project/restless
docker:
- image: circleci/node:11.13
version: 2.1

commands:
install_dependencies:
steps:
- checkout:
path: ~/project
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-restless-{{ checksum "yarn.lock" }}
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-restless-{{ checksum "yarn.lock" }}
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Run linter
command: yarn lint
- run:
name: Build
command: yarn build
- run:
name: Test
command: yarn test

ethereum:
working_directory: ~/project/ethereum
jobs:
lint:
docker:
- image: circleci/node:11.13
- image: circleci/node:11.15
steps:
- checkout:
path: ~/project
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-ethereum-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-ethereum-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Run linter
command: yarn lint
- run:
name: Build
command: yarn build
- run:
name: Test
command: yarn test
- checkout
- install_dependencies
- run: yarn lint

sanitizers:
working_directory: ~/project/sanitizers
build_and_test:
docker:
- image: circleci/node:11.13
- image: circleci/node:11.15
steps:
- checkout:
path: ~/project
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-sanitizers-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-sanitizers-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Run linter
command: yarn lint
- run:
name: Build
command: yarn build
- run:
name: Test
command: yarn test

- checkout
- install_dependencies
- run: yarn build
- run: yarn test

workflows:
version: 2
build_and_test:
jobs:
- restless
- ethereum
- sanitizers
- lint
- build_and_test
Loading

0 comments on commit 80e26f9

Please sign in to comment.