aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-14 01:52:08 +0800
committerGitHub <noreply@github.com>2017-11-14 01:52:08 +0800
commit58a318b754c3d3d854e36f4b56b37f7de8c0913a (patch)
treed8e3e52fe55e1c3c4e90299708fa8197f9b2002e /.circleci/config.yml
parenta74ec0effa818a86233fe64cb0dad2c61bbb4bb6 (diff)
parentff07f490025447ff11bbdb68ef46304e981f5696 (diff)
downloaddexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar.gz
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar.bz2
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar.lz
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar.xz
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.tar.zst
dexon-sol-tools-58a318b754c3d3d854e36f4b56b37f7de8c0913a.zip
Merge pull request #214 from 0xProject/monoRepo
Switch over to Lerna + Yarn Workspaces setup for a mono-repo approach
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..1d6122dd5
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,30 @@
+version: 2
+
+jobs:
+ build:
+ docker:
+ - image: circleci/node:6.12
+ environment:
+ CONTRACTS_COMMIT_HASH: '78fe8dd'
+ steps:
+ - checkout
+ - run: echo 'export PATH=$HOME/CIRCLE_PROJECT_REPONAME/node_modules/.bin:$PATH' >> $BASH_ENV
+ - run:
+ name: yarn
+ command: yarn
+ - save_cache:
+ key: dependency-cache-{{ checksum "package.json" }}
+ paths:
+ - ~/.cache/yarn
+ - run: wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT_HASH}.zip
+ - run: unzip ${CONTRACTS_COMMIT_HASH}.zip -d testrpc_snapshot
+ - run: node ./node_modules/lerna/bin/lerna.js bootstrap
+ - run: yarn lerna:run bootstrap
+ - run:
+ name: testrpc
+ command: npm run testrpc -- --db testrpc_snapshot
+ background: true
+ - run: yarn lerna:run test:coverage
+ - run: yarn lerna:run report_test_coverage
+ - run: if [ $CIRCLE_BRANCH = "master" ]; then yarn lerna:run test:umd; fi
+ - run: yarn lerna:run lint